Method: Hash#stringify_keys

Defined in:
lib/partigirb/core_ext.rb

#stringify_keysObject

Return a new hash with all keys converted to strings.



5
6
7
8
9
10
# File 'lib/partigirb/core_ext.rb', line 5

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