Ruby and Java equality usage


I have posted a quick (reminder like) entry about how equality is
handled by Ruby and Java:

However, I feel I have missed to explain correctly why eql? and ==
are both needed (and I’ve been reading through Ruby books and searched
the ruby mailing list). Maybe somebody can clarify it and give a
better example. I will be happy to update the entry to reflect the
“new” knowledge.