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
68 69 70 |
# File 'lib/event_bus/registrations.rb', line 68 def receiver block end |
#respond(event_name, payload) ⇒ Object
64 65 66 |
# File 'lib/event_bus/registrations.rb', line 64 def respond(event_name, payload) block.call(payload) if pattern === event_name end |