From: "matz (Yukihiro Matsumoto)" Date: 2021-12-21T12:12:18+00:00 Subject: [ruby-core:106759] [Ruby master Feature#14394] Class.descendants Issue #14394 has been updated by matz (Yukihiro Matsumoto). Sorry for the last minute change. The biggest reason is that we still have several options, so I didn't want to restrict the future possibility. For example, `Class#descendants` can either: * behave as it was first introduced. `Module#descentands` may or may not be introduced. * be undefined for classes (to be reserved for module hierarchy), just like `Class#include` * not be introduced along with `Module#descendants`. I am open to discussion but I don't want to jump on the conclusion. Matz. ---------------------------------------- Feature #14394: Class.descendants https://bugs.ruby-lang.org/issues/14394#change-95463 * Author: ridiculous (Ryan Buckley) * Status: Open * Priority: Normal * Assignee: ko1 (Koichi Sasada) ---------------------------------------- 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: