Class: RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator Private
- Inherits:
-
Object
- Object
- RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator
- Defined in:
- lib/rspec/matchers/built_in/compound.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
For value expectations, we can evaluate the matchers sequentially.
Instance Method Summary (collapse)
-
- (SequentialEvaluator) initialize(actual)
constructor
private
A new instance of SequentialEvaluator.
- - (Boolean) matcher_matches?(matcher) private
Constructor Details
- (SequentialEvaluator) initialize(actual)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SequentialEvaluator
141 142 143 |
# File 'lib/rspec/matchers/built_in/compound.rb', line 141 def initialize(actual, *) @actual = actual end |
Instance Method Details
- (Boolean) matcher_matches?(matcher)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
145 146 147 |
# File 'lib/rspec/matchers/built_in/compound.rb', line 145 def matcher_matches?(matcher) matcher.matches?(@actual) end |