Sha256: ea8f835e1a54d8db91847211439a23e1f2951483d158dd02e83e2b86505733f5

Contents?: true

Size: 195 Bytes

Versions: 5

Compression:

Stored size: 195 Bytes

Contents

unless {}.respond_to? :stringify_keys
  class Hash
    def stringify_keys
      inject({}) do |hash, pair|
        hash[pair[0].to_s] = pair[1]
        hash
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
riak-client-2.4.1 lib/riak/core_ext/stringify_keys.rb
riak-client-2.4.0 lib/riak/core_ext/stringify_keys.rb
riak-client-2.4.0.pre1 lib/riak/core_ext/stringify_keys.rb
riak-client-2.3.2 lib/riak/core_ext/stringify_keys.rb
riak-client-2.3.1 lib/riak/core_ext/stringify_keys.rb