Class: SuperDiff::Differs::Hash
- Inherits:
-
Base
- Object
- Base
- SuperDiff::Differs::Hash
show all
- Defined in:
- lib/super_diff/differs/hash.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
4
5
6
|
# File 'lib/super_diff/differs/hash.rb', line 4
def self.applies_to?(expected, actual)
expected.is_a?(::Hash) && actual.is_a?(::Hash)
end
|
Instance Method Details
#call ⇒ Object
8
9
10
|
# File 'lib/super_diff/differs/hash.rb', line 8
def call
DiffFormatters::Hash.call(operations, indent_level: indent_level)
end
|