Module: Mensa::Configurable

Included in:
Mensa
Defined in:
lib/mensa/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject



76
77
78
# File 'lib/mensa/configuration.rb', line 76

def config
  @config ||= Configuration.new
end

Instance Method Details

#configure {|config| ... } ⇒ Object Also known as: setup

Yields:



80
81
82
# File 'lib/mensa/configuration.rb', line 80

def configure
  yield(config)
end

#reset_config!Object



86
87
88
# File 'lib/mensa/configuration.rb', line 86

def reset_config!
  @config = Configuration.new
end