From: matz@... (Yukihiro Matsumoto) Date: 2001-05-29T16:42:43+09:00 Subject: [ruby-talk:15911] Re: How to enumerate known subclasses? Hi, In message "[ruby-talk:15887] How to enumerate known subclasses?" on 01/05/29, Stefan Matthias Aust writes: |It might be possible to enumerate all objects and look for class |objects whose superclass is X, but that seems to be very inefficient. | |I'd prefer if there'd be a more direct approach to this problem. How about making a class/module relation table at first by enumerating all classes/modules, then keeping the table up-to-date by hooking "inherited" and "append_features" (or "included" in 1.7)? Just an idea. matz.