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