From: Phrogz Date: 2006-11-05T00:05:13+09:00 Subject: Re: How to simplify "a.instance_of? classX or a.instance_of? classY " F. Senault wrote: > Maybe more legible (and allows you to reuse the test) : > > LIST = [ WSDL::XMLSchema::ComplexContent, > WSDL::XMLSchema::ComplexType, > WSDL::XMLSchema::SimpleType, > ... > ] > ... > > case object > when *LIST > ... > end > > Fred Very nice.