Sha256: d0616dbe24627ebff5cf328ca63011bc3205d467845b1496cc516966ff600753

Contents?: true

Size: 186 Bytes

Versions: 11

Compression:

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

11 entries across 11 versions & 2 rubygems

Version Path
seomoz-riak-client-1.0.0.pre lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.8 lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.5 lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.4 lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.3 lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.2 lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.1 lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.0 lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.0.beta2 lib/riak/core_ext/stringify_keys.rb
riak-client-0.9.0.beta lib/riak/core_ext/stringify_keys.rb
riak-client-0.8.3 lib/riak/core_ext/stringify_keys.rb