Class: Class
Instance Method Summary collapse
-
#ancestor_class ⇒ Object
Parent class, first ancestor.
-
#ancestor_classes ⇒ Object
Remove the modules from the classes.
Instance Method Details
#ancestor_class ⇒ Object
Parent class, first ancestor
9 10 11 12 13 |
# File 'lib/deployable/patch/class_ancestor.rb', line 9 def ancestor_class list = ancestor_classes self if list.length == 0 ancestor_classes[1] end |
#ancestor_classes ⇒ Object
Remove the modules from the classes
4 5 6 |
# File 'lib/deployable/patch/class_ancestor.rb', line 4 def ancestor_classes ancestors - included_modules end |