From: Austin Ziegler Date: 2006-08-15T23:46:58+09:00 Subject: Re: Question about the threequal operator .=== On 8/15/06, Robert Klemme wrote: > On 15.08.2006 10:15, John wrote: > > Hi > > > > I'm a newbie on ruby and i have some questions : > > *What is special to the threequals operator when it comes to when > > clause ? > > object === other_object > > It's simply the fact that it's invoked. "when" doesn't invoke ==, eql? > or equal? but ===. And it does it differently than might be expected. case object when other_object end is the same as other_object === object, not the other way around. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca