Sha256: db931bde33ada8a70a3f5bb79cabcf7663f9fc1ebebf87bcb6de2ca9d3c27a8a

Contents?: true

Size: 141 Bytes

Versions: 11

Compression:

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

11 entries across 11 versions & 1 rubygems

Version Path
loopiator-0.3.8 lib/loopiator/extensions/hash.rb
loopiator-0.3.7 lib/loopiator/extensions/hash.rb
loopiator-0.3.6 lib/loopiator/extensions/hash.rb
loopiator-0.3.5 lib/loopiator/extensions/hash.rb
loopiator-0.3.4 lib/loopiator/extensions/hash.rb
loopiator-0.3.3 lib/loopiator/extensions/hash.rb
loopiator-0.3.2 lib/loopiator/extensions/hash.rb
loopiator-0.3.1 lib/loopiator/extensions/hash.rb
loopiator-0.3.0 lib/loopiator/extensions/hash.rb
loopiator-0.2.0 lib/loopiator/extensions/hash.rb
loopiator-0.1.0 lib/loopiator/extensions/hash.rb