Class: ActiveSupport::Notifications::Fanout::BaseGroup

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Notifications::FanoutIteration
Defined in:
lib/active_support/notifications/fanout.rb

Overview

:nodoc:

Direct Known Subclasses

BaseTimeGroup, EventObjectGroup, EventedGroup

Instance Method Summary collapse

Constructor Details

#initialize(listeners, name, id, payload) ⇒ BaseGroup

Returns a new instance of BaseGroup.



117
118
119
# File 'lib/active_support/notifications/fanout.rb', line 117

def initialize(listeners, name, id, payload)
  @listeners = listeners
end

Instance Method Details

#each(&block) ⇒ Object



121
122
123
# File 'lib/active_support/notifications/fanout.rb', line 121

def each(&block)
  iterate_guarding_exceptions(@listeners, &block)
end