From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2003-03-27T14:31:34+09:00 Subject: Re: case not calling class' '===' method? In article <1048739230.024452.29873.nullmailer@picachu.netlab.jp>, Yukihiro Matsumoto wrote: >Hi, > >In message "case not calling class' '===' method?" > on 03/03/27, Phil Tomson writes: > >|maybe I'm missing something obvious... >| >|I've defined a '===' operator for my class, but it doesn't seem to get >|called by case. Here's the code: > >In a code like > > case a > when b > ... > end > >"===" is called like "b === a", not "a === b". I hope this explains >what happened on your code. > > matz. > Thanks matz. Could you explain why it is done this way? Phil