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.