Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/xcake/core_ext/object.rb
Class Method Summary collapse
-
.descendants ⇒ Object
Returns all descendants of a class.
Class Method Details
.descendants ⇒ Object
Returns all descendants of a class
4 5 6 |
# File 'lib/xcake/core_ext/object.rb', line 4 def self.descendants ObjectSpace.each_object(Class).select { |klass| klass < self } end |