Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/colorls/monkeys.rb

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject



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