Sha256: 00431ae526eb258f3289cdedb8a4c9219dbe09ea16e37d02abef3c2bf85ab957

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

module Rocketman
  module Consumer
    def on_event(event, &action)
      consumer = self
      Rocketman::Registry.register_event(event)
      Rocketman::Registry.register_consumer(event, consumer, action)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rocketman-0.3.0 lib/rocketman/consumer.rb
rocketman-0.2.0 lib/rocketman/consumer.rb