lib/hashie/extensions/stringify_keys.rb
def stringify_keys(hash)
          copy = hash.dup
          copy.extend(Hashie::Extensions::StringifyKeys) unless copy.respond_to?(:stringify_keys!)
          copy.tap do |new_hash|
            stringify_keys!(new_hash)
          end
        end
# Return a copy of hash with all keys converted
# to strings.
# @param [::Hash] hash
Return a copy of hash with all keys converted
to strings.
Return a copy of hash with all keys converted to strings .
def stringify_keys(hash)
          copy = hash.dup
          copy.extend(Hashie::Extensions::StringifyKeys) unless copy.respond_to?(:stringify_keys!)
          copy.tap do |new_hash|
            stringify_keys!(new_hash)
          end
        end
def stringify_keys ( hash ) copy = hash . dup copy . extend ( Hashie :: Extensions :: StringifyKeys ) unless copy . respond_to? ( :stringify_keys! ) copy . tap do | new_hash | stringify_keys! ( new_hash ) end end
Return a copy of hash with all keys converted
to strings.
Return a copy of hash with all keys converted to strings .
hash
None