Class: SuperDiff::Basic::Differs::Hash

Inherits:
Core::AbstractDiffer show all
Defined in:
lib/super_diff/basic/differs/hash.rb

Class Method Summary collapse

Methods inherited from Core::AbstractDiffer

#call

Class Method Details

.applies_to?(expected, actual) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/super_diff/basic/differs/hash.rb', line 7

def self.applies_to?(expected, actual)
  expected.is_a?(::Hash) && actual.is_a?(::Hash)
end