module DescendantsTracker
def add_descendant(descendant)
- Api: - private
Returns:
-
(self)
-
Parameters:
-
descendant
(Class
) --
def add_descendant(descendant) ancestor = superclass if ancestor.respond_to?(:add_descendant) ancestor.add_descendant(descendant) end descendants.unshift(descendant) self end