Class: SuperDiff::Core::DifferDispatcher
- Inherits:
-
Object
- Object
- SuperDiff::Core::DifferDispatcher
- Defined in:
- lib/super_diff/core/differ_dispatcher.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |