diff options
| author | Randy Morgan <[email protected]> | 2012-07-10 20:27:42 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-07-10 20:27:42 +0900 |
| commit | e82f217d5d94d5e07c195323b61f9e3195ac6634 (patch) | |
| tree | 1cfccdba9f632722ee3464742ee5083923845e44 /lib/axlsx/doc_props/core.rb | |
| parent | 8f0e868940fe7fd56e2c43e2b1102ec1d3e58a0e (diff) | |
| download | caxlsx-e82f217d5d94d5e07c195323b61f9e3195ac6634.tar.gz caxlsx-e82f217d5d94d5e07c195323b61f9e3195ac6634.zip | |
more cleanup
Diffstat (limited to 'lib/axlsx/doc_props/core.rb')
| -rw-r--r-- | lib/axlsx/doc_props/core.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/axlsx/doc_props/core.rb b/lib/axlsx/doc_props/core.rb index 0b62aa7c..d71300e0 100644 --- a/lib/axlsx/doc_props/core.rb +++ b/lib/axlsx/doc_props/core.rb @@ -1,20 +1,21 @@ # encoding: UTF-8 module Axlsx + # The core object for the package. # @note Packages manage their own core object. # @see Package#core class Core - # - # The author of the document. By default this is 'axlsx' - # @return [String] - attr_accessor :creator - + # Creates a new Core object. # @option options [String] creator def initialize(options={}) @creator = options[:creator] || 'axlsx' end + # The author of the document. By default this is 'axlsx' + # @return [String] + attr_accessor :creator + # serializes the core.xml document # @return [String] def to_xml_string(str = '') @@ -27,5 +28,7 @@ module Axlsx str << '<cp:revision>0</cp:revision>' str << '</cp:coreProperties>' end + end + end |
