J
Jason Lillywhite
Ruby can do Class#ancestors but not Class#descendants.
I found this: http://termos.vemod.net/class-descendants
But it only works after you define a new inheritance. Is there a way to
find descendants of a class that is already in place? For example:
Numeric.descendants
=> [Integer, Float, Complex]
Thank you.
I found this: http://termos.vemod.net/class-descendants
But it only works after you define a new inheritance. Is there a way to
find descendants of a class that is already in place? For example:
Numeric.descendants
=> [Integer, Float, Complex]
Thank you.