Class: SuperDiff::Core::DifferDispatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/super_diff/core/differ_dispatcher.rb

Instance Method Summary collapse

Instance Method Details

#callObject



14
15
16
17
18
19
20
21
22
# File 'lib/super_diff/core/differ_dispatcher.rb', line 14

def call
  if resolved_class
    resolved_class.call(expected, actual, indent_level: indent_level)
  elsif raise_if_nothing_applies?
    raise NoDifferAvailableError.create(expected, actual)
  else
    ''
  end
end