Module: Fog::StringifyKeys
- Defined in:
- lib/fog/core/stringify_keys.rb
Class Method Summary collapse
-
.stringify(hash) ⇒ Object
Returns a new hash with all keys converted to strings.
Class Method Details
.stringify(hash) ⇒ Object
Returns a new hash with all keys converted to strings.
5 6 7 8 9 |
# File 'lib/fog/core/stringify_keys.rb', line 5 def self.stringify(hash) self.transform_hash(hash) {|hash, key, value| hash[key.to_s] = value } end |