Sha256: a49f3a6c91b9a9dbdaeb614cc4a7d5f104fddcb8c01e3bd966fa544e02372899

Contents?: true

Size: 270 Bytes

Versions: 1

Compression:

Stored size: 270 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)
      @id = id
      Aggro.event_bus.subscribe(id, self)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aggro-0.0.4 lib/aggro/projection.rb