Class: Test::Right::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/test/right/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Config

Returns a new instance of Config.



4
5
6
# File 'lib/test/right/config.rb', line 4

def initialize(options={})
  @options = options
end

Instance Method Details

#[](name) ⇒ Object



8
9
10
# File 'lib/test/right/config.rb', line 8

def [](name)
  @options[name] || @options[name.to_s]
end