Class: Rx::ReactiveTest::OnNextPredicate

Inherits:
Object
  • Object
show all
Defined in:
lib/rx/testing/reactive_test.rb

Instance Method Summary collapse

Constructor Details

#initialize(&action) ⇒ OnNextPredicate

Returns a new instance of OnNextPredicate.



71
72
73
# File 'lib/rx/testing/reactive_test.rb', line 71

def initialize(&action)
  @action = action
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



75
76
77
# File 'lib/rx/testing/reactive_test.rb', line 75

def ==(other)
  other && other.on_next? && @action.call(other.value)
end