Class: Walnut::Configuration
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Walnut::Configuration
- Defined in:
- lib/walnut/configuration.rb
Overview
Dummy class to give a namespace to the configuration object.
Instance Method Summary collapse
-
#[](key) ⇒ Object
Convenience for accessing keys.
-
#[]=(key, value) ⇒ Object
Convenience method to set keys.
Instance Method Details
#[](key) ⇒ Object
Convenience for accessing keys
18 19 20 |
# File 'lib/walnut/configuration.rb', line 18 def [](key) send(key.to_s) end |
#[]=(key, value) ⇒ Object
Convenience method to set keys
29 30 31 |
# File 'lib/walnut/configuration.rb', line 29 def []=(key, value) send(key.to_s << "=", value) end |