123456789_123456789_123456789_123456789_123456789_

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

Instance Method Summary

Constructor Details

.new(actual) ⇒ SequentialEvaluator

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/compound.rb', line 133

def initialize(actual, *)
  @actual = actual
end

Instance Method Details

#matcher_matches?(matcher) ⇒ Boolean

[ GitHub ]

  
# File 'rspec-expectations/lib/rspec/matchers/built_in/compound.rb', line 137

def matcher_matches?(matcher)
  matcher.matches?(@actual)
end