stringify_keys()
Instance Public methods
Returns a new hash with all keys converted to strings.
1 2 3 4 | hash = { name: 'Rob' , age: '28' } hash.stringify_keys # => { "name" => "Rob", "age" => "28" } |
Returns a new hash with all keys converted to strings.
1 2 3 4 | hash = { name: 'Rob' , age: '28' } hash.stringify_keys # => { "name" => "Rob", "age" => "28" } |
Designed by : w10schools
service@w10schools.com
Please login to continue.