class RSpec::Matchers::BuiltIn::Compound::Or

@api public Matcher used to represent a compound `or` expectation.

Public Instance Methods

failure_message() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/compound.rb, line 258
def failure_message
  compound_failure_message
end

Private Instance Methods

conjunction() click to toggle source
# File lib/rspec/matchers/built_in/compound.rb, line 269
def conjunction
  "or"
end
match(*) click to toggle source
Calls superclass method
# File lib/rspec/matchers/built_in/compound.rb, line 264
def match(*)
  super
  matcher_1_matches? || matcher_2_matches?
end