Class: SuperDiff::EqualityMatchers::Base

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.applies_to?(_value) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/super_diff/equality_matchers/base.rb', line 4

def self.applies_to?(_value)
  raise NotImplementedError
end

Instance Method Details

#callObject



19
20
21
22
23
24
25
# File 'lib/super_diff/equality_matchers/base.rb', line 19

def call
  if expected == actual
    ""
  else
    fail
  end
end