diff options
| author | Randy Morgan <[email protected]> | 2012-07-10 20:03:51 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-07-10 20:03:51 +0900 |
| commit | 8f0e868940fe7fd56e2c43e2b1102ec1d3e58a0e (patch) | |
| tree | f1ca3985d454980073aef0aa387626da565946c6 /lib/axlsx/doc_props | |
| parent | cc4f75ce39528ed90c57208e83e319370408dd12 (diff) | |
| download | caxlsx-8f0e868940fe7fd56e2c43e2b1102ec1d3e58a0e.tar.gz caxlsx-8f0e868940fe7fd56e2c43e2b1102ec1d3e58a0e.zip | |
code updates for readability.
part of an ongoing effort to make the code more readable code.
Diffstat (limited to 'lib/axlsx/doc_props')
| -rw-r--r-- | lib/axlsx/doc_props/app.rb | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/lib/axlsx/doc_props/app.rb b/lib/axlsx/doc_props/app.rb index 0d3968cd..52891e28 100644 --- a/lib/axlsx/doc_props/app.rb +++ b/lib/axlsx/doc_props/app.rb @@ -10,6 +10,35 @@ module Axlsx # DigSig (DigSigBlob) class App + # Creates an App object + # @option options [String] template + # @option options [String] manager + # @option options [Integer] pages + # @option options [Integer] words + # @option options [Integer] characters + # @option options [String] presentation_format + # @option options [Integer] lines + # @option options [Integer] paragraphs + # @option options [Integer] slides + # @option options [Integer] notes + # @option options [Integer] total_time + # @option options [Integer] hidden_slides + # @option options [Integer] m_m_clips + # @option options [Boolean] scale_crop + # @option options [Boolean] links_up_to_date + # @option options [Integer] characters_with_spaces + # @option options [Boolean] share_doc + # @option options [String] hyperlink_base + # @option options [String] hyperlinks_changed + # @option options [String] application + # @option options [String] app_version + # @option options [Integer] doc_security + def initialize(options={}) + options.each do |name, value| + self.send("#{name}=", value) if self.respond_to? "#{name}=" + end + end + # @return [String] The name of the document template. attr_reader :template alias :Template :template @@ -102,35 +131,6 @@ module Axlsx attr_reader :doc_security alias :DocSecurity :doc_security - # Creates an App object - # @option options [String] template - # @option options [String] manager - # @option options [Integer] pages - # @option options [Integer] words - # @option options [Integer] characters - # @option options [String] presentation_format - # @option options [Integer] lines - # @option options [Integer] paragraphs - # @option options [Integer] slides - # @option options [Integer] notes - # @option options [Integer] total_time - # @option options [Integer] hidden_slides - # @option options [Integer] m_m_clips - # @option options [Boolean] scale_crop - # @option options [Boolean] links_up_to_date - # @option options [Integer] characters_with_spaces - # @option options [Boolean] share_doc - # @option options [String] hyperlink_base - # @option options [String] hyperlinks_changed - # @option options [String] application - # @option options [String] app_version - # @option options [Integer] doc_security - def initialize(options={}) - options.each do |o| - self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" - end - end - # Sets the template property of your app.xml file def template=(v) Axlsx::validate_string v; @template = v; end alias :Template :template |
