Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#stringify_keysObject

stolen from ActiveSupport



3
4
5
6
7
8
# File 'lib/core_ext/hash.rb', line 3

def stringify_keys
  inject({}) do |options, (key, value)|
    options[key.to_s] = value
    options
  end
end