Module: Signum::Configurable
- Defined in:
- lib/signum/configuration.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #configure {|config| ... } ⇒ Object (also: #setup)
- #reset_config! ⇒ Object
Instance Attribute Details
#config ⇒ Object
61 62 63 |
# File 'lib/signum/configuration.rb', line 61 def config @config ||= Configuration.new end |
Instance Method Details
#configure {|config| ... } ⇒ Object Also known as: setup
65 66 67 |
# File 'lib/signum/configuration.rb', line 65 def configure yield(config) end |
#reset_config! ⇒ Object
70 71 72 |
# File 'lib/signum/configuration.rb', line 70 def reset_config! @config = Configuration.new end |