Class: Docxer::Word::Settings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Settings

Returns a new instance of Settings.



6
7
8
# File 'lib/docxer/word/settings.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/settings.rb', line 5

def options
  @options
end

Instance Method Details

#render(zip) ⇒ Object



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

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