Sha256: c17bc5ec8ff4d9932743908eb3d1651f0592f3662b63baa5196c75a39fa6cbaf

Contents?: true

Size: 153 Bytes

Versions: 19

Compression:

Stored size: 153 Bytes

Contents

# frozen_string_literal: true

class Hash
  def stringify_keys
    keys.each_with_object({}) do |key, h|
      h[key.to_s] = self[key]
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
noise-ruby-0.10.1 lib/noise/utils/hash.rb
noise-ruby-0.10.0 lib/noise/utils/hash.rb
noise-ruby-0.9.4 lib/noise/utils/hash.rb
noise-ruby-0.8.4 lib/noise/utils/hash.rb
noise-ruby-0.7.4 lib/noise/utils/hash.rb
noise-ruby-0.7.3 lib/noise/utils/hash.rb
noise-ruby-0.7.1 lib/noise/utils/hash.rb
noise-ruby-0.7.0 lib/noise/utils/hash.rb
noise-ruby-0.6.3 lib/noise/utils/hash.rb
noise-ruby-0.6.2 lib/noise/utils/hash.rb
noise-ruby-0.6.1 lib/noise/utils/hash.rb
noise-ruby-0.6.0 lib/noise/utils/hash.rb
noise-ruby-0.5.3 lib/noise/utils/hash.rb
noise-ruby-0.5.2 lib/noise/utils/hash.rb
noise-ruby-0.5.1 lib/noise/utils/hash.rb
noise-ruby-0.5.0 lib/noise/utils/hash.rb
noise-ruby-0.3.0 lib/noise/utils/hash.rb
noise-ruby-0.2.0 lib/noise/utils/hash.rb
noise-ruby-0.1.0 lib/noise/utils/hash.rb