Class: Docxer::Word::Footnotes

Inherits:
Object
  • Object
show all
Defined in:
lib/docxer/word/footnotes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Footnotes

Returns a new instance of Footnotes.



6
7
8
# File 'lib/docxer/word/footnotes.rb', line 6

def initialize(options={})
  @options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/docxer/word/footnotes.rb', line 5

def options
  @options
end

Instance Method Details

#render(zip) ⇒ Object



10
11
12
13
# File 'lib/docxer/word/footnotes.rb', line 10

def render(zip)
  zip.put_next_entry('word/footnotes.xml')
  zip.write(Docxer.to_xml(document))
end