Module: Nuntius::Configurable

Included in:
Nuntius
Defined in:
lib/nuntius/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject



131
132
133
# File 'lib/nuntius/configuration.rb', line 131

def config
  @config ||= Configuration.new
end

Instance Method Details

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

Yields:



135
136
137
# File 'lib/nuntius/configuration.rb', line 135

def configure
  yield(config)
end

#reset_config!Object



141
142
143
# File 'lib/nuntius/configuration.rb', line 141

def reset_config!
  @config = Configuration.new
end