Sha256: 0f8b52910eb50f3b826021ad11ee7b7af0db89aefe0f4119080aedd6f97ca350

Contents?: true

Size: 94 Bytes

Versions: 9

Compression:

Stored size: 94 Bytes

Contents

class Hash
  def symbolize_keys
    Hash[self.map{ |k,v| [(k.to_sym rescue k), v] }]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pipe_rpc-1.1.2 lib/hash.rb
pipe_rpc-1.1.1 lib/hash.rb
pipe_rpc-1.1.0 lib/hash.rb
pipe_rpc-1.0.0 lib/hash.rb
pipe_rpc-0.3.2 lib/hash.rb
pipe_rpc-0.3.1 lib/hash.rb
pipe_rpc-0.3.0 lib/hash.rb
pipe_rpc-0.2.2 lib/hash.rb
pipe_rpc-0.2.0 lib/hash.rb