summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/doc_props
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-07-10 20:27:42 +0900
committerRandy Morgan <[email protected]>2012-07-10 20:27:42 +0900
commite82f217d5d94d5e07c195323b61f9e3195ac6634 (patch)
tree1cfccdba9f632722ee3464742ee5083923845e44 /lib/axlsx/doc_props
parent8f0e868940fe7fd56e2c43e2b1102ec1d3e58a0e (diff)
downloadcaxlsx-e82f217d5d94d5e07c195323b61f9e3195ac6634.tar.gz
caxlsx-e82f217d5d94d5e07c195323b61f9e3195ac6634.zip
more cleanup
Diffstat (limited to 'lib/axlsx/doc_props')
-rw-r--r--lib/axlsx/doc_props/app.rb6
-rw-r--r--lib/axlsx/doc_props/core.rb13
2 files changed, 12 insertions, 7 deletions
diff --git a/lib/axlsx/doc_props/app.rb b/lib/axlsx/doc_props/app.rb
index 52891e28..39f86eb4 100644
--- a/lib/axlsx/doc_props/app.rb
+++ b/lib/axlsx/doc_props/app.rb
@@ -1,5 +1,6 @@
# encoding: UTF-8
module Axlsx
+
# App represents the app.xml document. The attributes for this object are primarily managed by the application the end user uses to edit the document. None of the attributes are required to serialize a valid xlsx object.
# @see shared-documentPropertiesExtended.xsd
# @note Support is not implemented for the following complex types:
@@ -118,7 +119,7 @@ module Axlsx
# @return [Boolean] Indicates that the hyper links in the document have been changed.
attr_reader :hyperlinks_changed
alias :HyperlinksChanged :hyperlinks_changed
-
+
# @return [String] The name of the application
attr_reader :application
alias :Applicatoin :application
@@ -216,7 +217,7 @@ module Axlsx
# Sets the doc_security property of your app.xml file
def doc_security=(v) Axlsx::validate_int v; @doc_security = v; end
alias :DocSecurity= :doc_security=
-
+
# Serialize the app.xml document
# @return [String]
def to_xml_string(str = '')
@@ -227,4 +228,5 @@ module Axlsx
end
end
+
end
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