From: hanmac@... Date: 2020-08-31T09:02:03+00:00 Subject: [ruby-core:99795] [Ruby master Feature#14394] Class.descendants Issue #14394 has been updated by Hanmac (Hans Mackowiak). @fatkodima how does rb_class_foreach_subclass handle anonymous classes? if it would add them, how about adding a parameter to this function exclude/include them? (exclude them as default?) ---------------------------------------- Feature #14394: Class.descendants https://bugs.ruby-lang.org/issues/14394#change-87312 * Author: ridiculous (Ryan Buckley) * Status: Open * Priority: Normal ---------------------------------------- There have been numerous implementations of the method Class.descendants by various gems. However, I can't help but think that this ability should be included in the Ruby language itself. Especially since Ruby already offers the counterpart method Class.ancestors. Would it possible to add a `descendants` class method? -- https://bugs.ruby-lang.org/ Unsubscribe: