Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/hash.rb
Instance Method Summary collapse
Instance Method Details
#indifferent_fetch(key) ⇒ Object
2 3 4 |
# File 'lib/hash.rb', line 2 def indifferent_fetch(key) self.fetch(key.to_sym, nil) || self.fetch(key, nil) end |