lib/virtus/support/descendants_tracker.rb
# Add the descendant to this class and the superclass
#
# @param [Class] descendant
#
# @return [self]
#
# @api private
Add the descendant to this class and the superclass
Add the descendant to this class and the superclass
def add_descendant(descendant)
      superclass = self.superclass
      superclass.add_descendant(descendant) if superclass.respond_to?(:add_descendant)
      descendants.unshift(descendant)
      self
    end
def add_descendant ( descendant ) superclass = self . superclass superclass . add_descendant ( descendant ) if superclass . respond_to? ( :add_descendant ) descendants . unshift ( descendant ) self end
Add the descendant to this class and the superclass
Add the descendant to this class and the superclass
None
self
descendant
<not_specific>
<not_specific>
None
api
None