Class: ActiveSupport::SubscriberQueueRegistry

Inherits:
Object
  • Object
show all
Extended by:
PerThreadRegistry
Defined in:
lib/active_support/subscriber.rb

Overview

This is a registry for all the event stacks kept for subscribers.

See the documentation of ActiveSupport::PerThreadRegistry for further details.

Instance Method Summary collapse

Methods included from PerThreadRegistry

extended, instance

Constructor Details

#initializeSubscriberQueueRegistry

Returns a new instance of SubscriberQueueRegistry.



116
117
118
# File 'lib/active_support/subscriber.rb', line 116

def initialize
  @registry = {}
end

Instance Method Details

#get_queue(queue_key) ⇒ Object



120
121
122
# File 'lib/active_support/subscriber.rb', line 120

def get_queue(queue_key)
  @registry[queue_key] ||= []
end