Class: Rx::ReactiveTest::OnErrorPredicate

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

Instance Method Summary collapse

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