Class: SuperDiff::ObjectInspection::Inspectors::Base

Inherits:
Object
  • Object
show all
Extended by:
ImplementationChecks
Defined in:
lib/super_diff/object_inspection/inspectors/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.applies_to?(_value) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/super_diff/object_inspection/inspectors/base.rb', line 8

def self.applies_to?(_value)
  unimplemented_class_method!
end

Instance Method Details

#callObject



14
15
16
17
18
19
20
21
22
# File 'lib/super_diff/object_inspection/inspectors/base.rb', line 14

def call
  SuperDiff::RecursionGuard.substituting_recursion_of(object) do
    inspection_tree.evaluate(
      object,
      as_single_line: as_single_line,
      indent_level: indent_level,
    )
  end
end