Class: Rx::ReactiveTest::OnErrorPredicate
- Inherits:
-
Object
- Object
- Rx::ReactiveTest::OnErrorPredicate
- Defined in:
- lib/rx/testing/reactive_test.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
-
#initialize(&action) ⇒ OnErrorPredicate
constructor
A new instance of OnErrorPredicate.
Constructor Details
#initialize(&action) ⇒ OnErrorPredicate
Returns a new instance of OnErrorPredicate.
83 84 85 |
# File 'lib/rx/testing/reactive_test.rb', line 83 def initialize(&action) @action = action end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
87 88 89 |
# File 'lib/rx/testing/reactive_test.rb', line 87 def ==(other) other && other.on_error? && @action.call(other.error) end |