Khurram <khabibiuf / hotmail.com> wrote:
> Hi all,

> I was trying to develop a definition for the  === operator on a custom
> class I made.  It seems like that when I use case statements on an
> object of the class the === operator does not get invoked.  What could
> I be doing wrong?

Hi,

It is because the order is reversed; I also got the same mistake the first
time I used Ruby.  Please see Item 12 in "Things That Newcomers to Ruby
Should Know":

    http://www.glue.umd.edu/~billtj/ruby.html#case

Regards,

Bill