Module that adds descendant tracking to a class
Unreleased gem version
Add the descendant to this class and the superclass
@param [Class] descendant
@return [self]
@api private
# File lib/descendants_tracker.rb, line 38 def add_descendant(descendant) ancestor = superclass if ancestor.respond_to?(:add_descendant) ancestor.add_descendant(descendant) end descendants.unshift(descendant) self end
Generated with the Darkfish Rdoc Generator 2.