Class: EvilEvents::Core::Events::Manager::SubscriberList Private
- Inherits:
-
Concurrent::Array
- Object
- Concurrent::Array
- EvilEvents::Core::Events::Manager::SubscriberList
- Defined in:
- lib/evil_events/core/events/manager/subscriber_list.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #registered?(source_subscriber) ⇒ Boolean private
- #sources ⇒ Array<Object> private
- #wrapper_of(source_subscriber) ⇒ EvilEvents::Core::Events::Subscriber private
Instance Method Details
#registered?(source_subscriber) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/evil_events/core/events/manager/subscriber_list.rb', line 11 def registered?(source_subscriber) any? { |subscriber| subscriber.source_object == source_subscriber } end |
#sources ⇒ Array<Object>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/evil_events/core/events/manager/subscriber_list.rb', line 26 def sources map(&:source_object) end |
#wrapper_of(source_subscriber) ⇒ EvilEvents::Core::Events::Subscriber
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/evil_events/core/events/manager/subscriber_list.rb', line 19 def wrapper_of(source_subscriber) find { |subscriber| subscriber.source_object == source_subscriber } end |