Module: Nyoibo::Configure

Included in:
Nyoibo
Defined in:
lib/nyoibo/configure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/nyoibo/configure.rb', line 3

def config
  @config
end

Instance Method Details

#configure(&block) ⇒ Object



4
5
6
7
# File 'lib/nyoibo/configure.rb', line 4

def configure(&block)
  @config = Config.new
  @config.instance_exec(&block)
end