class RSpec::Matchers::BuiltIn::Eql
Not intended to be instantiated directly.
Provides the implementation for ‘eql`.
@api private
def diffable?
-
(Boolean)
-
Other tags:
- Api: - private
def diffable? true end
def failure_message
-
(String)
-
Other tags:
- Api: - private
def failure_message if string_encoding_differs? "\nexpected: #{format_encoding(expected)} #{expected_formatted}\n got: #{format_encoding(actual)} #{actual_formatted}\n\n(compared using eql?)\n" else "\nexpected: #{expected_formatted}\n got: #{actual_formatted}\n\n(compared using eql?)\n" end end
def failure_message_when_negated
-
(String)
-
Other tags:
- Api: - private
def failure_message_when_negated "\nexpected: value != #{expected_formatted}\n got: #{actual_formatted}\n\n(compared using eql?)\n" end
def match(expected, actual)
def match(expected, actual) actual.eql? expected end