Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/q/hash.rb
Instance Method Summary collapse
Instance Method Details
#symbolize_keys! ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/q/hash.rb', line 2 def symbolize_keys! keys.each do |key| value = delete key if value.is_a? Hash value.symbolize_keys! end self[(key.to_sym rescue key) || key] = value end self end |