Class: Substation::Observer::Chain
- Inherits:
-
Substation::Observer
- Object
- Substation::Observer
- Substation::Observer::Chain
- Defined in:
- lib/substation/observer.rb
Overview
Chain of observers
Constant Summary
Constants inherited from Substation::Observer
Instance Method Summary collapse
-
#call(response) ⇒ self
private
Notify the observer.
Methods inherited from Substation::Observer
Instance Method Details
#call(response) ⇒ self
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.
Notify the observer
57 58 59 60 61 62 |
# File 'lib/substation/observer.rb', line 57 def call(response) observers.each do |observer| observer.call(response) end self end |