Sha256: faa717178a65186bf5122b8079e21107f1d29930fb794ae079e0e781e1f07c06

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

module Aggro
  # Public: Mixin to turn a PORO into an Aggro projection.
  module Projection
    extend ActiveSupport::Concern

    include BindingDSL
    include EventDSL

    def initialize(id)
      Aggro.event_bus.subscribe(id, self)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aggro-0.0.3 lib/aggro/projection.rb
aggro-0.0.2 lib/aggro/projection.rb