Class: Setti::IndifferentHash
- Inherits:
-
Hash
- Object
- Hash
- Setti::IndifferentHash
- Defined in:
- lib/setti/indifferent_hash.rb
Instance Method Summary collapse
Instance Method Details
#[](name) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/setti/indifferent_hash.rb', line 3 def [](name) value = super(name.to_s) if value.is_a?(Hash) IndifferentHash[value] else value end end |