Sha256: f2adf6f3b6fbcaac76a959f0f25e33b829ae4d8eb354ac0b6d110fee1c4fae0b
Contents?: true
Size: 353 Bytes
Versions: 1
Compression:
Stored size: 353 Bytes
Contents
# http://stackoverflow.com/questions/2030336/how-do-i-create-a-hash-in-ruby-that-compares-strings-ignoring-case class HashClod < Hash def [](key) key.respond_to?(:upcase) ? super(UnicodeUtils.upcase(key)) : super(key) end def []=(key, value) key.respond_to?(:upcase) ? super(UnicodeUtils.upcase(key), value) : super(key, value) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wasserstand-0.0.9 | lib/wasserstand/hash_clod.rb |