Class: ActiveSupport::Notifications::Fanout::BaseGroup
- Defined in:
- lib/active_support/notifications/fanout.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(listeners, name, id, payload) ⇒ BaseGroup
constructor
A new instance of BaseGroup.
Constructor Details
#initialize(listeners, name, id, payload) ⇒ BaseGroup
Returns a new instance of BaseGroup.
120 121 122 |
# File 'lib/active_support/notifications/fanout.rb', line 120 def initialize(listeners, name, id, payload) @listeners = listeners end |
Instance Method Details
#each(&block) ⇒ Object
124 125 126 |
# File 'lib/active_support/notifications/fanout.rb', line 124 def each(&block) iterate_guarding_exceptions(@listeners, &block) end |