Class: Hash
Instance Method Summary collapse
Instance Method Details
#symbolize_keys ⇒ Object
101 102 103 104 105 106 |
# File 'lib/core_ext.rb', line 101 def symbolize_keys inject({}) do |, (key, value)| [(key.to_sym rescue key) || key] = value end end |