Sha256: bdd29a1cba3c406b87c94d9831f86814ccc430e5e21a486365940a58bd9c0d72
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
# This module tracks which classes inherit from the class that includes # the module, and provides an accessor to it. module DispatchRider module Handlers module InheritanceTracking def inherited(subclass) subclasses << subclass super end def subclasses @subclasses ||= Set.new end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dispatch-rider-2.1.0 | lib/dispatch-rider/handlers/inheritance_tracking.rb |
dispatch-rider-2.0.0 | lib/dispatch-rider/handlers/inheritance_tracking.rb |