Class: EventBus::Registrations::Registration

Inherits:
Struct
  • Object
show all
Defined in:
lib/event_bus/registrations.rb

Instance Method Summary collapse

Instance Method Details

#respond(event_name, payload) ⇒ Object



36
37
38
# File 'lib/event_bus/registrations.rb', line 36

def respond(event_name, payload)
  listener.send(method_name, payload) if pattern === event_name
end