Class: IndifferentHash
- Inherits:
-
Hash
- Object
- Hash
- IndifferentHash
- Defined in:
- lib/ki/utils/indifferent_hash.rb
Instance Method Summary collapse
Instance Method Details
#[](*args) ⇒ Object
7 8 9 10 |
# File 'lib/ki/utils/indifferent_hash.rb', line 7 def [](*args) args[0] = args[0].to_sym super(*args) end |
#[]=(key, val) ⇒ Object
2 3 4 5 |
# File 'lib/ki/utils/indifferent_hash.rb', line 2 def []=(key, val) key = key.to_sym super(key, val) end |