Class: EventBus::Registrations::BlockRegistration
- Inherits:
-
Struct
- Object
- Struct
- EventBus::Registrations::BlockRegistration
- Defined in:
- lib/event_bus/registrations.rb
Instance Method Summary collapse
Instance Method Details
#receiver ⇒ Object
73 74 75 |
# File 'lib/event_bus/registrations.rb', line 73 def receiver block end |
#respond(event_name, payload) ⇒ Object
69 70 71 |
# File 'lib/event_bus/registrations.rb', line 69 def respond(event_name, payload) block.call(payload) if pattern === event_name end |