From: "Jan E." Date: 2012-06-28T23:32:56+09:00 Subject: Re: Confusion about aliasing eql? and == Hi, Well, eql? is generally just a method you can use to compare more strictly than the == operator. For example, 1 == 1.0 is true, while 1.eql?(1.0) is false. So the numeric classes use == for "weak comparisons" (no type checking) and eql? for "strong comparisons". You may do something similar with your own classes, if you think it makes sense. If you don't, then the eql? method from Object will be used, which simply checks for object identity. I think it's typical to not touch the eql? method at all. I've actually never used it (not even as an alias for ==). -- Posted via http://www.ruby-forum.com/.