Sha256: 715dcacaf2e7062303d80ec34a8c5bc70910f4abc9a8d10d4b7dd66a63938585
Contents?: true
Size: 267 Bytes
Versions: 51
Compression:
Stored size: 267 Bytes
Contents
module HTTParty module Utils def self.stringify_keys(hash) return hash.transform_keys(&:to_s) if hash.respond_to?(:transform_keys) hash.each_with_object({}) do |(key, value), new_hash| new_hash[key.to_s] = value end end end end
Version data entries
51 entries across 26 versions & 4 rubygems