module DescendantsTracker
Ruby on Rails 7.2.3
Since v3.0.20Active Support Descendants Tracker
This module provides an internal implementation to track descendants which is faster than iterating through ObjectSpace.
However Ruby 3.1 provide a fast native +Class#subclasses+ method, so if you know your code won’t be executed on older rubies, including ActiveSupport::DescendantsTracker does not provide any benefit.
Methods (defined here)
- # descendants
- self. descendants
- self. subclasses