From: Stephane Wirtel Date: 2006-11-04T11:10:10+09:00 Subject: How to simplify "a.instance_of? classX or a.instance_of? classY " Hi all, I would like to know if there is a way to simplify this code object.instance_of? WSDL::XMLSchema::ComplexContent or object.instance_of? WSDL::XMLSchema::ComplexType or object.instance_of? WSDL::XMLSchema::SimpleType or object.instance_of? WSDL::XMLSchema::SimpleRestriction or object.instance_of? WSDL::XMLSchema::Element or object.instance_of? WSDL::XMLSchema::Sequence or object.instance_of? XSD::QName or object.instance_of? WSDL::Message or object.instance_of? WSDL::Part or object.instance_of? WSDL::Service or object.instance_of? WSDL::Port or object.instance_of? WSDL::SOAP::Address or object.instance_of? WSDL::Binding or object.instance_of? WSDL::SOAP::Binding or object.instance_of? WSDL::OperationBinding or object.instance_of? WSDL::SOAP::Operation or object.instance_of? WSDL::Param or object.instance_of? WSDL::SOAP::Body or object.instance_of? WSDL::PortType or object.instance_of? WSDL::Operation or object.instance_of? WSDL::SOAP::Attribute ? Thanks