Class: Dry::Monads::SuperDiff::OTBuilders::CompareDefault Private

Inherits:
SuperDiff::Basic::OperationTreeBuilders::CustomObject
  • Object
show all
Defined in:
lib/dry/monads/extensions/super_diff.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Direct Known Subclasses

CompareDicts, CompareTuples

Class Method Summary collapse

Class Method Details

.applies_to?(expected, actual) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

API:

  • private



141
142
143
144
# File 'lib/dry/monads/extensions/super_diff.rb', line 141

def self.applies_to?(expected, actual)
  VALUES.include?(expected.class) &&
    actual.instance_of?(expected.class)
end