diff options
author | Jeremy Evans <[email protected]> | 2021-12-20 08:26:14 -0800 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2021-12-20 11:02:15 -0800 |
commit | 3bd5f27f737c7d365b7d01c43d77a958c224ab16 (patch) | |
tree | 2e3933d29fc01a17999c3664969017df77a998a0 /class.c | |
parent | c57ac4c6e0acf9b4c1fbb3092eefc89873c5d249 (diff) |
Remove Class#descendants
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5309
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -1429,31 +1429,6 @@ class_descendants(VALUE klass, bool immediate_only) /* * call-seq: - * descendants -> array - * - * Returns an array of classes where the receiver is one of - * the ancestors of the class, excluding the receiver and - * singleton classes. The order of the returned array is not - * defined. - * - * class A; end - * class B < A; end - * class C < B; end - * - * A.descendants #=> [B, C] - * B.descendants #=> [C] - * C.descendants #=> [] - */ - -VALUE -rb_class_descendants(VALUE klass) -{ - return class_descendants(klass, false); -} - - -/* - * call-seq: * subclasses -> array * * Returns an array of classes where the receiver is the |