Module: HelpfulUtils::InheritanceTree
- Defined in:
- lib/helpful_utils/patching_utils/inheritance_tree.rb
Instance Method Summary collapse
Instance Method Details
#class_children ⇒ Object
9 10 11 |
# File 'lib/helpful_utils/patching_utils/inheritance_tree.rb', line 9 def class_children (@class_objects ||= Class.objects).select {|e| e.superclass == self } end |
#objects ⇒ Object
3 4 5 6 7 |
# File 'lib/helpful_utils/patching_utils/inheritance_tree.rb', line 3 def objects class_objects = [] ObjectSpace.each_object(self) {|e| class_objects << e } class_objects end |