Module: Prawn::Configurable
- Defined in:
- lib/prawn/core.rb
Overview
:nodoc:
Instance Method Summary collapse
- #configuration(*args) ⇒ Object (also: #C)
Instance Method Details
#configuration(*args) ⇒ Object Also known as: C
60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/prawn/core.rb', line 60 def configuration(*args) @config ||= Marshal.load(Marshal.dump(default_configuration)) if Hash === args[0] @config.update(args[0]) elsif args.length > 1 @config.values_at(*args) elsif args.length == 1 @config[args[0]] else @config end end |