Sha256: 5f5dcf8824f3eb48152701932516cf9cdcbea47c67a5d6febab3c65e0e41ec40

Contents?: true

Size: 358 Bytes

Versions: 58

Compression:

Stored size: 358 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

58 entries across 58 versions & 1 rubygems

Version Path
dispatch-rider-1.9.0 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.8.6 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.8.5 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.8.4 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.8.3 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.8.2 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.8.1 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.8.0 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.7.2 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.7.1 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.7.0 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.6.2 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.6.1 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.6.0 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.5.3 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.5.2 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.5.1 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.5.0 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.4.2 lib/dispatch-rider/handlers/inheritance_tracking.rb
dispatch-rider-1.4.0 lib/dispatch-rider/handlers/inheritance_tracking.rb