Sha256: 1e6a49a0a67628bb6095eaa52a7f4a8b55e1821ba5b05bda3fa28902ed8720ac

Contents?: true

Size: 140 Bytes

Versions: 66

Compression:

Stored size: 140 Bytes

Contents

class Hash
  def symbolize_keys!
    keys.each do |key|
      self[(key.to_sym rescue key) || key] = delete(key)
    end
    self
  end
end

Version data entries

66 entries across 66 versions & 8 rubygems

Version Path
databasedotcom-ejholmes-1.3.3 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-ejholmes-1.3.2 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.3.0 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.2.7 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.2.6 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.2.5 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.2.4 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.2.3 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.2.2 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.2.1 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.2.0 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.1.7 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.1.6 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.1.5 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.1.4 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.1.2 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.1.1 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.1.0 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.0.9 lib/databasedotcom/core_extensions/hash_extensions.rb
databasedotcom-1.0.8 lib/databasedotcom/core_extensions/hash_extensions.rb