Class: Config

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

Instance Method Summary collapse

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