class RSpec::Matchers::BuiltIn::Eq

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/rspec/matchers/built_in/eq.rbs

class RSpec::Matchers::BuiltIn::Eq < RSpec::Matchers::BuiltIn::BaseMatcher
  def match: (String expected, String actual) -> true
end

Not intended to be instantiated directly.
Provides the implementation for ‘eq`.
@api private

def description

Returns:
  • (String) -

Other tags:
    Api: - private
def description
  "eq #{expected_formatted}"
end

def diffable?

Returns:
  • (Boolean) -

Other tags:
    Api: - private
def diffable?
  true
end

def failure_message

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message
  "\nexpected: #{expected_formatted}\n     got: #{actual_formatted}\n\n(compared using ==)\n"
end

def failure_message_when_negated

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message_when_negated
  "\nexpected: value != #{expected_formatted}\n     got: #{actual_formatted}\n\n(compared using ==)\n"
end

def match(expected, actual)

Experimental RBS support (using type sampling data from the type_fusion project).

def match: (String expected, String actual) -> true

This signature was generated using 1 sample from 1 application.

def match(expected, actual)
  actual == expected
end