Class: SuperDiff::EqualityMatchers::Default

Inherits:
Base
  • Object
show all
Defined in:
lib/super_diff/equality_matchers/default.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#call

Class Method Details

.applies_to?(_value) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/super_diff/equality_matchers/default.rb', line 6

def self.applies_to?(_value)
  true
end

Instance Method Details

#failObject



10
11
12
13
14
15
16
17
18
# File 'lib/super_diff/equality_matchers/default.rb', line 10

def fail
  "    Differing objects.\n\n    \#{expected_line}\n    \#{actual_line}\n    \#{diff_section}\n  OUTPUT\nend\n".strip