class RxRuby::ReactiveTest::OnNextPredicate

Public Class Methods

new(&action) click to toggle source
# File lib/rx_ruby/testing/reactive_test.rb, line 71
def initialize(&action)
  @action = action
end

Public Instance Methods

==(other) click to toggle source
# File lib/rx_ruby/testing/reactive_test.rb, line 75
def ==(other)
  other && other.on_next? && @action.call(other.value)
end
Also aliased as: eql?
eql?(other)
Alias for: ==