Sha256: 58bfd55ea4ecf01fd7fd477027a3c51030270bb785951d5ba867faeffe48a3dd

Contents?: true

Size: 142 Bytes

Versions: 18

Compression:

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

18 entries across 18 versions & 1 rubygems

Version Path
phrase-0.4.14 lib/ext/hash.rb
phrase-0.4.13 lib/ext/hash.rb
phrase-0.4.12 lib/ext/hash.rb
phrase-0.4.11 lib/ext/hash.rb
phrase-0.4.10 lib/ext/hash.rb
phrase-0.4.9 lib/ext/hash.rb
phrase-0.4.8 lib/ext/hash.rb
phrase-0.4.7 lib/ext/hash.rb
phrase-0.4.6 lib/ext/hash.rb
phrase-0.4.5 lib/ext/hash.rb
phrase-0.4.4 lib/ext/hash.rb
phrase-0.4.3 lib/ext/hash.rb
phrase-0.4.2 lib/ext/hash.rb
phrase-0.4.1 lib/ext/hash.rb
phrase-0.4.0 lib/ext/hash.rb
phrase-0.3.7 lib/ext/hash.rb
phrase-0.3.6 lib/ext/hash.rb
phrase-0.3.5 lib/ext/hash.rb