Module: Lamby::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/lamby/config.rb

Instance Method Summary collapse

Instance Method Details

#configObject



13
14
15
# File 'lib/lamby/config.rb', line 13

def config
  @config ||= Configuration.new
end

#configure {|config| ... } ⇒ Object

Yields:



4
5
6
7
# File 'lib/lamby/config.rb', line 4

def configure
  yield(config)
  config
end

#reconfigureObject



9
10
11
# File 'lib/lamby/config.rb', line 9

def reconfigure
  config.reconfigure { |c| yield(c) if block_given? }
end