Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/piper/hash_helpers.rb

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject



4
5
6
7
8
9
# File 'lib/piper/hash_helpers.rb', line 4

def symbolize_keys
  each_with_object({}) do |(key, val), hash|
    hash[key.to_sym] = val
    hash
  end
end