Sha256: 07c6be0f738e9bbee394247183320adf1c899d88a97cb4dcabb4107dca5b3ad7

Contents?: true

Size: 187 Bytes

Versions: 40

Compression:

Stored size: 187 Bytes

Contents

unless {}.respond_to? :symbolize_keys
  class Hash
    def symbolize_keys
      inject({}) do |hash, pair|
        hash[pair[0].to_sym] = 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/symbolize_keys.rb
riak-client-2.5.0 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.3.0 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.2.2 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.2.1 lib/riak/core_ext/symbolize_keys.rb
riak-client-noenc-1.0.0 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.2.0 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.2.0.pre1 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.1.0 lib/riak/core_ext/symbolize_keys.rb
riak-client-1.4.5 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.0.0 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.0.0.rc2 lib/riak/core_ext/symbolize_keys.rb
riak-client-2.0.0.rc1 lib/riak/core_ext/symbolize_keys.rb
riak-client-1.4.4.1 lib/riak/core_ext/symbolize_keys.rb
riak-client-1.4.4 lib/riak/core_ext/symbolize_keys.rb
riak-client-1.4.3 lib/riak/core_ext/symbolize_keys.rb
riak-client-1.4.2 lib/riak/core_ext/symbolize_keys.rb
riak-client-1.4.1 lib/riak/core_ext/symbolize_keys.rb
riak-client-1.4.0 lib/riak/core_ext/symbolize_keys.rb
riak-client-1.2.0 lib/riak/core_ext/symbolize_keys.rb