Class: SuperDiff::ObjectInspection::Inspectors::Base
- Inherits:
-
Object
- Object
- SuperDiff::ObjectInspection::Inspectors::Base
show all
- Extended by:
- ImplementationChecks
- Defined in:
- lib/super_diff/object_inspection/inspectors/base.rb
Direct Known Subclasses
ActiveRecord::ObjectInspection::Inspectors::ActiveRecordModel, ActiveRecord::ObjectInspection::Inspectors::ActiveRecordRelation, ActiveSupport::ObjectInspection::Inspectors::HashWithIndifferentAccess, Array, CustomObject, DefaultObject, Hash, Primitive, String, TimeLike, RSpec::ObjectInspection::Inspectors::CollectionContainingExactly, RSpec::ObjectInspection::Inspectors::CollectionIncluding, RSpec::ObjectInspection::Inspectors::HashIncluding, RSpec::ObjectInspection::Inspectors::InstanceOf, RSpec::ObjectInspection::Inspectors::KindOf, RSpec::ObjectInspection::Inspectors::ObjectHavingAttributes, RSpec::ObjectInspection::Inspectors::ValueWithin
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.applies_to?(_value) ⇒ 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
#call ⇒ Object
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
|