From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx/Core.html | 96 +++++++++++++++++++++++------------------------------ 1 file changed, 42 insertions(+), 54 deletions(-) (limited to 'doc/Axlsx/Core.html') diff --git a/doc/Axlsx/Core.html b/doc/Axlsx/Core.html index 37251c2a..d12bac9f 100644 --- a/doc/Axlsx/Core.html +++ b/doc/Axlsx/Core.html @@ -97,15 +97,13 @@
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.

@@ -144,9 +142,8 @@ The core object for the package. -

-The author of the document. -

+
+

The author of the document.

@@ -183,9 +180,8 @@ The author of the document. -

-Creates a new Core object. -

+
+

Creates a new Core object.

@@ -207,9 +203,8 @@ Creates a new Core object. -

-Serializes the core object. -

+
+

Serializes the core object.

@@ -230,9 +225,8 @@ Serializes the core object.

-

-Creates a new Core object. -

+ +

Creates a new Core object.

@@ -253,9 +247,8 @@ Creates a new Core object. — -

-a customizable set of options -

+
+

a customizable set of options

@@ -294,10 +287,9 @@ a customizable set of options
# 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 @@ -320,9 +312,8 @@ a customizable set of options

-

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

+ +

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

@@ -356,10 +347,9 @@ The author of the document. By default this is ‘axlsx’
# File 'lib/axlsx/doc_props/core.rb', line 8
 
-def creator
-  @creator
-end
-
+def creator + @creator +end @@ -381,10 +371,9 @@ The author of the document. By default this is ‘axlsx’

-

-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.

@@ -430,22 +419,21 @@ 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 @@ -456,9 +444,9 @@ time when this method is called.
-- cgit v1.2.3