Sha256: 12c72cf04ad86516a0ff3c36d2b5cb92e985ccf0f669c07281be381568b05fa6

Contents?: true

Size: 161 Bytes

Versions: 3

Compression:

Stored size: 161 Bytes

Contents

class ObservableWithCall
  include Signal.call

  attr_reader :args

  def initialize(*args)
    @args = args
  end

  def call
    emit(:args, @args)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
signal-1.1.0 test/support/observable_with_call.rb
signal-1.0.0 spec/support/observable_with_call.rb
signal-0.3.0 spec/support/observable_with_call.rb