Class: SuperDiff::Basic::OperationTreeBuilders::DataObject

Inherits:
CustomObject show all
Defined in:
lib/super_diff/basic/operation_tree_builders/data_object.rb

Class Method Summary collapse

Methods inherited from DefaultObject

#initialize

Methods inherited from Core::AbstractOperationTreeBuilder

#call

Constructor Details

This class inherits a constructor from SuperDiff::Basic::OperationTreeBuilders::DefaultObject

Class Method Details

.applies_to?(expected, actual) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
# File 'lib/super_diff/basic/operation_tree_builders/data_object.rb', line 7

def self.applies_to?(expected, actual)
  SuperDiff::Core::Helpers.ruby_version_matches?('~> 3.2') &&
    expected.instance_of?(actual.class) && expected.is_a?(Data)
end