module Dry::Core::DescendantsTracker
def add_descendant(descendant)
- Api: - private
def add_descendant(descendant) ancestor = superclass if ancestor.respond_to?(:add_descendant, true) ancestor.add_descendant(descendant) end descendants.unshift(descendant) end