method

stringify_keys

v4.0.2 - Show latest stable - Class: Hash
stringify_keys()
public

Return a new hash with all keys converted to strings.

hash = { name: 'Rob', age: '28' }

hash.stringify_keys
#=> { "name" => "Rob", "age" => "28" }