This module provides an internal implementation to track descendants which is faster than iterating through ObjectSpace.
# File lib/active_support/descendants_tracker.rb, line 20 20: def self.clear 21: @@direct_descendants.each do |klass, descendants| 22: if ActiveSupport::Dependencies.autoloaded?(klass) 23: @@direct_descendants.delete(klass) 24: else 25: descendants.reject! { |v| ActiveSupport::Dependencies.autoloaded?(v) } 26: end 27: end 28: end
# File lib/active_support/descendants_tracker.rb, line 39 39: def descendants 40: DescendantsTracker.descendants(self) 41: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.