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