Module: Signum::Configurable

Defined in:
lib/signum/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject



61
62
63
# File 'lib/signum/configuration.rb', line 61

def config
  @config ||= Configuration.new
end

Instance Method Details

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

Yields:



65
66
67
# File 'lib/signum/configuration.rb', line 65

def configure
  yield(config)
end

#reset_config!Object



70
71
72
# File 'lib/signum/configuration.rb', line 70

def reset_config!
  @config = Configuration.new
end