Class: Docxer::Properties
- Inherits:
-
Object
- Object
- Docxer::Properties
- Defined in:
- lib/docxer/properties.rb,
lib/docxer/properties/app.rb,
lib/docxer/properties/core.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#core ⇒ Object
Returns the value of attribute core.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Properties
constructor
A new instance of Properties.
- #render(zip) ⇒ Object
Constructor Details
#initialize(options) ⇒ Properties
8 9 10 |
# File 'lib/docxer/properties.rb', line 8 def initialize() = end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
6 7 8 |
# File 'lib/docxer/properties.rb', line 6 def app @app end |
#core ⇒ Object
Returns the value of attribute core.
6 7 8 |
# File 'lib/docxer/properties.rb', line 6 def core @core end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/docxer/properties.rb', line 6 def end |
Instance Method Details
#render(zip) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/docxer/properties.rb', line 20 def render(zip) zip.put_next_entry('docProps/app.xml') zip.write(Docxer.to_xml(app.document)) zip.put_next_entry('docProps/core.xml') zip.write(Docxer.to_xml(core.document)) end |