From: Timothy Bennett Date: 2006-03-23T12:08:27+09:00 Subject: Re: what on earth.. > case doesn't use == you can do this: > > a = 5 > > case a > when Fixnum > puts "I'm a fixnum" > else > puts "other" > end > > > ratdog:~/tmp mike$ ri Module#=== > ------------------------------------------------------------- > Module#=== > mod === obj => true or false > ---------------------------------------------------------------------- > -- > Case Equality---Returns +true+ if _anObject_ is an instance of > _mod_ or one of _mod_'s descendents. Of limited use for modules, > but can be used in +case+ statements to classify objects by > class. > Ok, out of the three of us that responded, Mike is the one who knows what he's talking about most. Listen to him. Tim