Class: Test::Right::Config
- Inherits:
-
Object
- Object
- Test::Right::Config
- Defined in:
- lib/test/right/config.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
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 = 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 |