Hi,
In message "[ruby-talk:18223] Re: how does hash locate pairs?"
on 01/07/21, Avi Bryant <avi / beta4.com> writes:
|Anytime you redefine ==, you need to redefine hash such that if a == b,
|a.hash == b.hash.
Hash uses "eql?", so that you need to redefine hash such that if
a.eql?(b), a.hash == b.hash.
matz.