Class: IndifferentHash

Inherits:
Hash show all
Defined in:
lib/ki/utils/indifferent_hash.rb

Instance Method Summary collapse

Instance Method Details

#[](*args) ⇒ Object



9
10
11
12
# File 'lib/ki/utils/indifferent_hash.rb', line 9

def [](*args)
  args[0] = args[0].to_sym
  super(*args)
end

#[]=(key, val) ⇒ Object



4
5
6
7
# File 'lib/ki/utils/indifferent_hash.rb', line 4

def []=(key, val)
  key = key.to_sym
  super(key, val)
end