From: arebuckley@... Date: 2018-01-25T21:29:39+00:00 Subject: [ruby-core:85124] [Ruby trunk Feature#14394] Class.descendants Issue #14394 has been updated by ridiculous (Ryan Buckley). @Hanmac yeah, registering with a method or a static list is common practice. But I feel like Ruby can do better. For many cases, it's possible to track them with the inherited hook, @Erogon. But for something so fundamental, why not include it in the language? I'm interested in the history, as I see it was presented and even tentatively scheduled for version 2.2 ([[https://bugs.ruby-lang.org/issues/9779]]), wondering what happened? ---------------------------------------- Feature #14394: Class.descendants https://bugs.ruby-lang.org/issues/14394#change-69838 * Author: ridiculous (Ryan Buckley) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- 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: