From: ko1@... Date: 2020-09-25T06:12:35+00:00 Subject: [ruby-core:100125] [Ruby master Feature#14394] Class.descendants Issue #14394 has been updated by ko1 (Koichi Sasada). let's clear: * `self` should be is contained or not? AS's method doesn't contain. * singleton classes should be excluded. * order is random (not specified). * performance of this method is not important, or important (calls it many times)? ---------------------------------------- Feature #14394: Class.descendants https://bugs.ruby-lang.org/issues/14394#change-87693 * Author: ridiculous (Ryan Buckley) * Status: Feedback * 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: