General

Profile

ridiculous (Ryan Buckley)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

01/25/2018

09:29 PM Ruby Feature #14394: Class.descendants
@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 i...
ridiculous (Ryan Buckley)

01/24/2018

10:41 PM Ruby Feature #14394: Class.descendants
Thanks for the reply, shevegen, those are helpful questions :)
The gems I've seen implement this are active-support and dry-rb, with other people checking ObjectSpace to get the list (which can be very slow for large apps).
The mos...
ridiculous (Ryan Buckley)
07:07 PM Ruby Feature #14394 (Assigned): Class.descendants
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 counterp... ridiculous (Ryan Buckley)

Also available in: Atom