Class: Rx::ReactiveTest::OnNextPredicate
- Inherits:
-
Object
- Object
- Rx::ReactiveTest::OnNextPredicate
- Defined in:
- lib/rx/testing/reactive_test.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
-
#initialize(&action) ⇒ OnNextPredicate
constructor
A new instance of OnNextPredicate.
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 |