Class: SuperDiff::ActiveSupport::OperationTrees::HashWithIndifferentAccess

Inherits:
OperationTrees::Base
  • Object
show all
Defined in:
lib/super_diff/active_support/operation_trees/hash_with_indifferent_access.rb

Instance Method Summary collapse

Methods inherited from OperationTrees::Base

applies_to?, #pretty_print

Instance Method Details

#to_diff(indent_level:, collection_prefix:, add_comma:) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/super_diff/active_support/operation_trees/hash_with_indifferent_access.rb', line 5

def to_diff(indent_level:, collection_prefix:, add_comma:)
  DiffFormatters::HashWithIndifferentAccess.call(
    self,
    indent_level: indent_level,
    collection_prefix: collection_prefix,
    add_comma: add_comma,
  )
end