Class: SuperDiff::ActiveSupport::Differs::HashWithIndifferentAccess
- Inherits:
-
Differs::Hash
- Object
- Differs::Base
- Differs::Hash
- SuperDiff::ActiveSupport::Differs::HashWithIndifferentAccess
- Defined in:
- lib/super_diff/active_support/differs/hash_with_indifferent_access.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.applies_to?(expected, actual) ⇒ Boolean
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/super_diff/active_support/differs/hash_with_indifferent_access.rb', line 5 def self.applies_to?(expected, actual) ( expected.is_a?(::HashWithIndifferentAccess) && actual.is_a?(::Hash) ) || ( expected.is_a?(::Hash) && actual.is_a?(::HashWithIndifferentAccess) ) end |
Instance Method Details
#call ⇒ Object
16 17 18 19 20 21 |
# File 'lib/super_diff/active_support/differs/hash_with_indifferent_access.rb', line 16 def call DiffFormatters::HashWithIndifferentAccess.call( operation_tree, indent_level: indent_level, ) end |