2021/12/23 今回の気になった bugs.ruby のチケット

今週は Ruby 3.1 で Class.descendants が Revert されたりしました。

[Feature #14394] Class.descendants

  • .descendants はレシーバが『継承されている』クラスの一覧を返すメソッドの追加の提案
class A; end
class B < A; end
class C < B; end

pp A.descendants    #=> [B, C]
pp B.descendants    #=> [C]
pp C.descendants    #=> []

[Bug #17866] Incompatible changes with Psych 4.0.0