method
stringify_keys
v4.1.8 -
Show latest stable
- Class:
Hash
stringify_keys()public
Returns a new hash with all keys converted to strings.
hash = { name: 'Rob', age: '28' } hash.stringify_keys # => { "name" => "Rob", "age" => "28" }