Sha256: 1be5d64aff1829b9c843403fd81fb62f3895c24b96bbcdd87ecbdbf46455bdf4

Contents?: true

Size: 185 Bytes

Versions: 40

Compression:

Stored size: 185 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

40 entries across 30 versions & 3 rubygems

Version Path
riak-client-2.6.0 lib/riak/core_ext/stringify_keys.rb
riak-client-2.5.0 lib/riak/core_ext/stringify_keys.rb
riak-client-2.3.0 lib/riak/core_ext/stringify_keys.rb
riak-client-2.2.2 lib/riak/core_ext/stringify_keys.rb
riak-client-2.2.1 lib/riak/core_ext/stringify_keys.rb
riak-client-noenc-1.0.0 lib/riak/core_ext/stringify_keys.rb
riak-client-2.2.0 lib/riak/core_ext/stringify_keys.rb
riak-client-2.2.0.pre1 lib/riak/core_ext/stringify_keys.rb
riak-client-2.1.0 lib/riak/core_ext/stringify_keys.rb
riak-client-1.4.5 lib/riak/core_ext/stringify_keys.rb
riak-client-2.0.0 lib/riak/core_ext/stringify_keys.rb
riak-client-2.0.0.rc2 lib/riak/core_ext/stringify_keys.rb
riak-client-2.0.0.rc1 lib/riak/core_ext/stringify_keys.rb
riak-client-1.4.4.1 lib/riak/core_ext/stringify_keys.rb
riak-client-1.4.4 lib/riak/core_ext/stringify_keys.rb
riak-client-1.4.3 lib/riak/core_ext/stringify_keys.rb
riak-client-1.4.2 lib/riak/core_ext/stringify_keys.rb
riak-client-1.4.1 lib/riak/core_ext/stringify_keys.rb
riak-client-1.4.0 lib/riak/core_ext/stringify_keys.rb
riak-client-1.2.0 lib/riak/core_ext/stringify_keys.rb