Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/colorls/monkeys.rb
Instance Method Summary collapse
Instance Method Details
#symbolize_keys ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/colorls/monkeys.rb', line 16 def symbolize_keys new_hash = {} each_key do |key| new_hash[key.to_sym] = delete(key) end new_hash end |