Sha256: 1518939dd76d79ebe210e7d55883380c703dbe3aa62272d1742a1ffc125cbf0b
Contents?: true
Size: 227 Bytes
Versions: 3
Compression:
Stored size: 227 Bytes
Contents
# extracted from from http://blog.playlouder.com/2008/05/07/an-interesting-ruby-hash-semantics-gotcha/ class Hash def hash inject(0) {|hash,pair| hash ^ pair.hash} end def eql?(other) self == other end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rogerdpack-sane-0.1.8 | lib/sane_ruby/hash_hashes.rb |
rogerdpack-sane-0.1.9 | lib/sane_ruby/hash_hashes.rb |
rogerdpack-sane-0.2.0 | lib/sane_ruby/hash_hashes.rb |