Module Launchy::DescendantTracker
In: lib/launchy/descendant_tracker.rb

Use by either

  class Foo
    extend DescendantTracker
  end

or

  class Foo
    class << self
      include DescendantTracker
    end
  end

It will track all the classes that inherit from the extended class and keep them in a Set that is available via the ‘children’ method.

Methods

Public Instance methods

The list of children that are registered

Find one of the child classes by calling the given method and passing all the rest of the parameters to that method in each child

[Validate]