module Rocketman::Consumer

Public Instance Methods

on_event(event, &action) click to toggle source
# File lib/rocketman/consumer.rb, line 3
def on_event(event, &action)
  consumer = self
  Rocketman::Registry.register_event(event)
  Rocketman::Registry.register_consumer(event, consumer, action)
end