Class: ActiveSupport::SubscriberQueueRegistry
- Extended by:
- PerThreadRegistry
- Defined in:
- activesupport/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
- #get_queue(queue_key) ⇒ Object
-
#initialize ⇒ SubscriberQueueRegistry
constructor
A new instance of SubscriberQueueRegistry.
Methods included from PerThreadRegistry
Constructor Details
#initialize ⇒ SubscriberQueueRegistry
Returns a new instance of SubscriberQueueRegistry.
161 162 163 |
# File 'activesupport/lib/active_support/subscriber.rb', line 161 def initialize @registry = {} end |
Instance Method Details
#get_queue(queue_key) ⇒ Object
165 166 167 |
# File 'activesupport/lib/active_support/subscriber.rb', line 165 def get_queue(queue_key) @registry[queue_key] ||= [] end |