Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/waxx/patch.rb
Instance Method Summary collapse
-
#/(k) ⇒ Object
Add an symbol/string indifferent access to a hash.
Instance Method Details
#/(k) ⇒ Object
Add an symbol/string indifferent access to a hash
47 48 49 |
# File 'lib/waxx/patch.rb', line 47 def /(k) self[k.to_sym] || self[k.to_s] end |