Class: Config
- Inherits:
-
Object
- Object
- Config
- Defined in:
- lib/webcommand/config.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(data) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(data) ⇒ Config
Returns a new instance of Config.
4 5 6 |
# File 'lib/webcommand/config.rb', line 4 def initialize(data) @data = data.deep_symbolize_keys end |
Instance Method Details
#[](key) ⇒ Object
8 9 10 |
# File 'lib/webcommand/config.rb', line 8 def [](key) @data[key] end |