Module: Nuntius::Configurable
- Included in:
- Nuntius
- Defined in:
- lib/nuntius/configuration.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #configure {|config| ... } ⇒ Object (also: #setup)
- #reset_config! ⇒ Object
Instance Attribute Details
#config ⇒ Object
131 132 133 |
# File 'lib/nuntius/configuration.rb', line 131 def config @config ||= Configuration.new end |
Instance Method Details
#configure {|config| ... } ⇒ Object Also known as: setup
135 136 137 |
# File 'lib/nuntius/configuration.rb', line 135 def configure yield(config) end |
#reset_config! ⇒ Object
141 142 143 |
# File 'lib/nuntius/configuration.rb', line 141 def reset_config! @config = Configuration.new end |