Class: SuperDiff::Basic::OperationTreeBuilders::CustomObject
- Inherits:
-
DefaultObject
- Object
- Core::AbstractOperationTreeBuilder
- DefaultObject
- SuperDiff::Basic::OperationTreeBuilders::CustomObject
- Defined in:
- lib/super_diff/basic/operation_tree_builders/custom_object.rb
Direct Known Subclasses
ActiveRecord::OperationTreeBuilders::ActiveRecordModel, DataObject, DateLike, TimeLike
Class Method Summary collapse
Methods inherited from DefaultObject
Methods inherited from Core::AbstractOperationTreeBuilder
Constructor Details
This class inherits a constructor from SuperDiff::Basic::OperationTreeBuilders::DefaultObject
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
7 8 9 10 11 |
# File 'lib/super_diff/basic/operation_tree_builders/custom_object.rb', line 7 def self.applies_to?(expected, actual) expected.instance_of?(actual.class) && expected.respond_to?(:attributes_for_super_diff) && actual.respond_to?(:attributes_for_super_diff) end |