class Class
See stackoverflow.com/questions/2393697/look-up-all-descendants-of-a-class-in-ruby
Public Instance Methods
descendants()
click to toggle source
Returns the descendants of the class.
# File lib/core_ext/class.rb, line 4 def descendants ObjectSpace.each_object(::Class).select {|klass| klass < self } end