Class: SuperDiff::OperationTreeBuilders::CustomObject
- Inherits:
-
DefaultObject
- Object
- Base
- DefaultObject
- SuperDiff::OperationTreeBuilders::CustomObject
- Defined in:
- lib/super_diff/operation_tree_builders/custom_object.rb
Direct Known Subclasses
ActiveRecord::OperationTreeBuilders::ActiveRecordModel, TimeLike
Class Method Summary collapse
Methods inherited from DefaultObject
Methods inherited from Base
Constructor Details
This class inherits a constructor from SuperDiff::OperationTreeBuilders::DefaultObject
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
4 5 6 7 8 |
# File 'lib/super_diff/operation_tree_builders/custom_object.rb', line 4 def self.applies_to?(expected, actual) expected.class == actual.class && expected.respond_to?(:attributes_for_super_diff) && actual.respond_to?(:attributes_for_super_diff) end |