Class: SuperDiff::Core::OperationTreeBuilderDispatcher

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  if resolved_class
    resolved_class.call(expected: expected, actual: actual)
  elsif raise_if_nothing_applies?
    raise NoOperationTreeBuilderAvailableError.create(expected, actual)
  end
end