Method: ChiliPDF::Config#update

Defined in:
lib/chili_pdf/config.rb

#update(options) ⇒ Object

Public: Accepts anything which responds to ‘[]’ and ‘.has_key?’

(ie: Hash-like objects)

Utilizes following keys (values of):

- HEADER_ENABLED_KEYNAME
- FOOTER_ENABLED_KEYNAME

Returns true. Always.



87
88
89
90
# File 'lib/chili_pdf/config.rb', line 87

def update(options)
  Setting[PLUGIN_KEYNAME] = defaults.merge(options)
  true
end