Sha256: 931c7afb08fd034c36b58f1d14796c288715814c4cbebcbff2ce757dcd5d2018

Contents?: true

Size: 211 Bytes

Versions: 1

Compression:

Stored size: 211 Bytes

Contents

module Reactor::Subscribable
  extend ActiveSupport::Concern

  module ClassMethods
    def subscribes_to(event, &callback)
      (Reactor::STATIC_SUBSCRIBERS[event.to_s] ||= []).push(callback)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reactor-0.3.0 lib/reactor/models/concerns/subscribable.rb