Class: RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator Private

Inherits:
Object
  • Object
show all
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.

API:

  • private

Instance Method Summary collapse

Constructor Details

#initialize(actual) ⇒ SequentialEvaluator

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.

API:

  • private



136
137
138
# File 'lib/rspec/matchers/built_in/compound.rb', line 136

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

Instance Method Details

#matcher_matches?(matcher) ⇒ Boolean

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:

API:

  • private



140
141
142
# File 'lib/rspec/matchers/built_in/compound.rb', line 140

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