Class: EventBus::Registrations::Registration

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

Instance Method Summary collapse

Instance Method Details

#receiverObject



63
64
65
# File 'lib/event_bus/registrations.rb', line 63

def receiver
  listener
end

#respond(event_name, payload) ⇒ Object



59
60
61
# File 'lib/event_bus/registrations.rb', line 59

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