Sha256: b34c31a4847c74c48d3df692e849d6ee1b8f96c5a45e84c251c120488f0cb401
Contents?: true
Size: 236 Bytes
Versions: 3
Compression:
Stored size: 236 Bytes
Contents
class Hash def symbolize! self.keys.each do |key| self[key.to_sym] = self.delete(key) end end def stringify! self.keys.each do |key| self[key.to_s] = self.delete(key) end return ahash end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-rest-rspec-0.0.2 | lib/rack-rest-rspec/helpers/hash.rb |
rack-rest-rspec-0.0.1 | lib/rack-rest-rspec/helpers/hash.rb |
rack-rest-rspec-0.0.1a | lib/rack-rest-rspec/helpers/hash.rb |