class Docxi::Properties

Attributes

app[RW]
core[RW]
options[RW]

Public Class Methods

new(options) click to toggle source
# File lib/docxi/properties.rb, line 8
def initialize(options)
  @options = options
end

Public Instance Methods

render(zip) click to toggle source
# File lib/docxi/properties.rb, line 20
def render(zip)
  zip.put_next_entry('docProps/app.xml')
  zip.write(Docxi.to_xml(app.document))

  zip.put_next_entry('docProps/core.xml')
  zip.write(Docxi.to_xml(core.document))
end