From cdfc7251bde8347678d355e5fe65fc20e120bc23 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:45:19 +0900 Subject: updating docs for 1.0.10a release --- doc/Axlsx/Core.html | 96 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 54 insertions(+), 42 deletions(-) (limited to 'doc/Axlsx/Core.html') diff --git a/doc/Axlsx/Core.html b/doc/Axlsx/Core.html index 4248da2c..ac608d16 100644 --- a/doc/Axlsx/Core.html +++ b/doc/Axlsx/Core.html @@ -97,13 +97,15 @@
Note: -
-

Packages manage their own core object.

+

+Packages manage their own core object. +

- -

The core object for the package.

+

+The core object for the package. +

@@ -142,8 +144,9 @@ -
-

The author of the document.

+

+The author of the document. +

@@ -180,8 +183,9 @@ -
-

Creates a new Core object.

+

+Creates a new Core object. +

@@ -203,8 +207,9 @@ -
-

Serializes the core object.

+

+Serializes the core object. +

@@ -225,8 +230,9 @@

- -

Creates a new Core object.

+

+Creates a new Core object. +

@@ -247,8 +253,9 @@ — -
-

a customizable set of options

+

+a customizable set of options +

@@ -287,9 +294,10 @@
# File 'lib/axlsx/doc_props/core.rb', line 12
 
-def initialize(options={})
-  @creator = options[:creator] || 'axlsx'      
-end
+def initialize(options={}) + @creator = options[:creator] || 'axlsx' +end + @@ -312,8 +320,9 @@

- -

The author of the document. By default this is 'axlsx'

+

+The author of the document. By default this is ‘axlsx’ +

@@ -347,9 +356,10 @@
# File 'lib/axlsx/doc_props/core.rb', line 8
 
-def creator
-  @creator
-end
+def creator + @creator +end + @@ -371,9 +381,10 @@

- -

Serializes the core object. The created dcterms item is set to the current -time when this method is called.

+

+Serializes the core object. The created dcterms item is set to the current +time when this method is called. +

@@ -419,21 +430,22 @@ time when this method is called.

# File 'lib/axlsx/doc_props/core.rb', line 18
 
-def to_xml()
-  builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml|
-    xml.send('cp:coreProperties', 
-             :xmlns:cp" => CORE_NS, 
-             :xmlns:dc' => CORE_NS_DC, 
-             :xmlns:dcmitype'=>CORE_NS_DCMIT, 
-             :xmlns:dcterms'=>CORE_NS_DCT, 
-             :xmlns:xsi'=>CORE_NS_XSI) {
-      xml['dc'].creator self.creator
-      xml['dcterms'].created Time.now.strftime('%Y-%m-%dT%H:%M:%S'), :xsi:type'=>"dcterms:W3CDTF"
-      xml['cp'].revision 0
-    }
-  end  
-  builder.to_xml
-end
+def to_xml() + builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml| + xml.send('cp:coreProperties', + :"xmlns:cp" => CORE_NS, + :'xmlns:dc' => CORE_NS_DC, + :'xmlns:dcmitype'=>CORE_NS_DCMIT, + :'xmlns:dcterms'=>CORE_NS_DCT, + :'xmlns:xsi'=>CORE_NS_XSI) { + xml['dc'].creator self.creator + xml['dcterms'].created Time.now.strftime('%Y-%m-%dT%H:%M:%S'), :'xsi:type'=>"dcterms:W3CDTF" + xml['cp'].revision 0 + } + end + builder.to_xml +end + @@ -444,9 +456,9 @@ time when this method is called.

-- cgit v1.2.3