obj == other â true or falseobj.equal?(other) â true or falseobj.eql?(other) â true or false
Instance Public methods
Equality â At the Object level, == returns
true only if obj and other are the
same object. Typically, this method is overridden in descendant classes to
provide class-specific meaning.
Unlike ==, the equal? method should never be
overridden by subclasses as it is used to determine object identity (that
is, a.equal?(b) if and only if a is the same
object