From: Pit Capitain Date: 2006-07-13T03:55:07+09:00 Subject: Re: Determining a class's ancestor easily without instances Wes Gamble schrieb: > I looked all over the Pickaxe reference to find it but I couldn't it. > > I guess the "basic" operators are not documented, even when they're > overridden in clever ways? Wes, you have to know that "Class" is a subclass of "Module", and so it inherits all methods from "Module", among them the method "<". See http://phrogz.net/ProgrammingRuby/ref_c_module.html#Module._lt_cm_lt_eq_cm_lt_cm_lt_eq The text says: One module is considered greater than another if it is included in *(or is a parent class of)* the other module. Regards, Pit