class RSpec::Matchers::BuiltIn::BaseMatcher

class. If/when this changes, we will announce it and remove this warning.
strongly recommend that you do not base your custom matchers on this
This class is for internal use, and subject to change without notice. We
### Warning:
rspec-expectations.
Used internally as a base class for matchers that ship with
@api private

def assert_ivars *ivars

def assert_ivars *ivars
  raise "#{self.class.name} needs to supply #{to_sentence ivars}" unless ivars.all? { |v| instance_variables.map(&:intern).include? v }
end

def description

def description
  defined?(@expected) ? "#{name_to_sentence} #{@expected.inspect}" : name_to_sentence
end

def diffable?

def diffable?
  false
end

def failure_message_for_should

def failure_message_for_should
  assert_ivars :@actual
  "expected #{@actual.inspect} to #{name_to_sentence}#{to_sentence expected}"
end

def failure_message_for_should_not

def failure_message_for_should_not
  assert_ivars :@actual
  "expected #{@actual.inspect} not to #{name_to_sentence}#{to_sentence expected}"
end

def initialize(expected = UNDEFINED)

def initialize(expected = UNDEFINED)
  @expected = expected unless UNDEFINED.equal?(expected)
end

def match_unless_raises(*exceptions)

def match_unless_raises(*exceptions)
  exceptions.unshift Exception if exceptions.empty?
  begin
    yield
    true
  rescue *exceptions => @rescued_exception
    false
  end
end

def matches?(actual)

def matches?(actual)
  @actual = actual
  match(expected, actual)
end

def supports_block_expectations?

Other tags:
    Api: - private
def supports_block_expectations?
  false
end