descendants_tracker

] {Build Status] ] ] {Coverage Status]

Small module to track descendants in an unobtrusive way.

Installation

With Rubygems:

$ gem install descendants_tracker
$ irb -rubygems
>> require 'descendants_tracker'
=> true

With git and local working copy:

$ git clone git://github.com/dkubb/descendants_tracker.git
$ cd descendants_tracker
$ rake install
$ irb -rubygems
>> require 'descendants_tracker'
=> true

Examples

class Foo
  extend DescendantsTracker
end

class Bar < Foo
end

Foo.descendants # => [Bar]

Credits

Contributing

Copyright © 2012-2013 Dan Kubb (author) Copyright © 2011-2012 Piotr Solnica (source maintainer) Copyright © 2012 Markus Schirp (packaging)

See LICENSE for details.