Class: Docxer::Word::Numbering

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Numbering

Returns a new instance of Numbering.



7
8
9
# File 'lib/docxer/word/numbering.rb', line 7

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

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#render(zip) ⇒ Object



11
12
13
14
# File 'lib/docxer/word/numbering.rb', line 11

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