Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/waxx/patch.rb

Instance Method Summary collapse

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