Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject



28
29
30
31
32
33
34
# File 'lib/colorls/monkeys.rb', line 28

def symbolize_keys
  new_hash = {}
  each_key do |key|
    new_hash[key.to_sym] = delete(key)
  end
  new_hash
end