From: Tomasz Wrobel Date: 2010-08-06T17:57:23+09:00 Subject: lt operator on class object, checking a class' superclasses Hi! Do you know a good way to check whether a class is a subclass of a certain class (given the class object, not an instance)? one way would be to check all of klass.superclass, klass.superclass.superclass till nil or klass.new.is_a?( cklass ) Accidentaly, I tried to such a operation: klass < cklass and it seems to work, but doesn't seem to be documented can somebody acknowledge this? Best regards, Tomek W -- Posted via http://www.ruby-forum.com/.