Module: Lamby::Config
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
13 14 15 |
# File 'lib/lamby/config.rb', line 13 def config @config ||= Configuration.new end |
#configure {|config| ... } ⇒ Object
4 5 6 7 |
# File 'lib/lamby/config.rb', line 4 def configure yield(config) config end |
#reconfigure ⇒ Object
9 10 11 |
# File 'lib/lamby/config.rb', line 9 def reconfigure config.reconfigure { |c| yield(c) if block_given? } end |