From 2d0ac967e94c5944ccccf9adad8da5a9d082df29 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 20 Nov 2011 23:44:58 +0900 Subject: pushing docs --- doc/Axlsx/ContentType.html | 340 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 340 insertions(+) create mode 100644 doc/Axlsx/ContentType.html (limited to 'doc/Axlsx/ContentType.html') diff --git a/doc/Axlsx/ContentType.html b/doc/Axlsx/ContentType.html new file mode 100644 index 00000000..ab1ccff9 --- /dev/null +++ b/doc/Axlsx/ContentType.html @@ -0,0 +1,340 @@ + + + + + + Class: Axlsx::ContentType + + — Documentation by YARD 0.7.3 + + + + + + + + + + + + + + + + + + + + + + +

Class: Axlsx::ContentType + + + +

+ +
+ +
Inherits:
+
+ SimpleTypedList + + + show all + +
+ + + + + + + + + +
Defined in:
+
lib/axlsx/content_type/content_type.rb
+ +
+
+ +

Overview

+
+

+ContentTypes used in the package. This is automatcially managed by the +package package. +

+ + +
+
+
+ + +
+ + + + + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from SimpleTypedList

+

allowed_types, locked_at, serialize_as

+ + + +

+ Instance Method Summary + (collapse) +

+ + + + + + + + + + + + +

Methods inherited from SimpleTypedList

+

#<<, #[]=, #delete, #delete_at, #lock, #method_missing, #protected?, #push, #unlock

+
+

Constructor Details

+ +
+

+ + - (ContentType) initialize + + + +

+
+

+A new instance of ContentType +

+ + +
+
+
+ + +
+ + + + +
+
+
+
+8
+9
+10
+
+
# File 'lib/axlsx/content_type/content_type.rb', line 8
+
+def initialize
+  super [Override, Default]
+end
+
+
+
+ +
+
+

Dynamic Method Handling

+

+ This class handles dynamic methods through the method_missing method + + in the class Axlsx::SimpleTypedList + +

+ +
+ + +
+

Instance Method Details

+ + +
+

+ + - (String) to_xml + + + +

+
+

+Generates the xml document for [Content_Types].xml +

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +

    +The document as a string. +

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+14
+15
+16
+17
+18
+19
+20
+21
+
+
# File 'lib/axlsx/content_type/content_type.rb', line 14
+
+def to_xml()
+  builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml|
+    xml.Types(:xmlns => Axlsx::XML_NS_T) {
+      each { |type| type.to_xml(xml) }
+    }
+  end
+  builder.to_xml
+end
+
+
+
+ +
+ +
+ + + + + \ No newline at end of file -- cgit v1.2.3