Sha256: 2a8df7b9c9e775c424060fc472920f7d60aee3c1810079ecf440110130039ad0

Contents?: true

Size: 222 Bytes

Versions: 1

Compression:

Stored size: 222 Bytes

Contents

# @private
class Emittance::Registration
  attr_reader :identifier

  def initialize(identifier, &callback)
    @identifier = identifier
    @callback = callback
  end

  def call(event)
    @callback.call event
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emittance-0.0.1 lib/emittance/registration.rb