From: Harry Ohlsen Date: 2003-07-10T17:51:49+09:00 Subject: Re: Doing a "case" on class Shin Nishiyama wrote: > Hi, > > case does not use == but === when comparision, and > irb(main):032:0> Fixnum == Fixnum > => true > irb(main):033:0> Fixnum === Fixnum > => false Ah! > so, you shuould code like > > >> fred = 123 >> > > case fred > >> when Fixnum >> puts "Yippee!" Great. That's even simpler. Thanks for the quick response. Harry O.