Sha256: 5afa4b2b26fe68cee469e59282a0fb7fcba1cbb0b260979997ff072a15e844ec
Contents?: true
Size: 389 Bytes
Versions: 18
Compression:
Stored size: 389 Bytes
Contents
# extracted from from http://replay.waybackmachine.org/20090311014545/http://blog.playlouder.com/2008/05/07/an-interesting-ruby-hash-semantics-gotcha/ # also see http://kpumuk.info/ruby-on-rails/memo-5-use-ary-uniq-method-carefully-in-ruby if RUBY_VERSION < '1.8.7' class Hash def hash inject(0) {|hash,pair| hash ^ pair.hash} end def eql?(other) self == other end end end
Version data entries
18 entries across 18 versions & 1 rubygems