class RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator

For value expectations, we can evaluate the matchers sequentially.

Public Class Methods

new(actual, *) click to toggle source
# File lib/rspec/matchers/built_in/compound.rb, line 119
def initialize(actual, *)
  @actual = actual
end

Public Instance Methods

matcher_matches?(matcher) click to toggle source
# File lib/rspec/matchers/built_in/compound.rb, line 123
def matcher_matches?(matcher)
  matcher.matches?(@actual)
end