Class: RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator Private
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rspec-expectations/lib/rspec/matchers/built_in/compound.rb |
Overview
For value expectations, we can evaluate the matchers sequentially.
Class Method Summary
- .new(actual) ⇒ SequentialEvaluator constructor Internal use only
Instance Method Summary
- #matcher_matches?(matcher) ⇒ Boolean Internal use only
Constructor Details
.new(actual) ⇒ SequentialEvaluator
# File 'rspec-expectations/lib/rspec/matchers/built_in/compound.rb', line 136
def initialize(actual, *) @actual = actual end
Instance Method Details
#matcher_matches?(matcher) ⇒ Boolean
# File 'rspec-expectations/lib/rspec/matchers/built_in/compound.rb', line 140
def matcher_matches?(matcher) matcher.matches?(@actual) end