Class: Eventus::Dispatchers::Synchronous
- Inherits:
-
Object
- Object
- Eventus::Dispatchers::Synchronous
- Defined in:
- lib/eventus/dispatchers/synchronous.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
Instance Method Summary collapse
- #dispatch(events) ⇒ Object
-
#initialize(persistence, &block) ⇒ Synchronous
constructor
A new instance of Synchronous.
Constructor Details
#initialize(persistence, &block) ⇒ Synchronous
Returns a new instance of Synchronous.
6 7 8 9 |
# File 'lib/eventus/dispatchers/synchronous.rb', line 6 def initialize(persistence, &block) @persistence = persistence @action = block || lambda {} end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4 5 6 |
# File 'lib/eventus/dispatchers/synchronous.rb', line 4 def action @action end |