Class: SuperDiff::OperationTrees::Hash
- Defined in:
- lib/super_diff/operation_trees/hash.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Class Method Details
.applies_to?(value) ⇒ Boolean
4 5 6 |
# File 'lib/super_diff/operation_trees/hash.rb', line 4 def self.applies_to?(value) value.is_a?(::Hash) end |
Instance Method Details
#to_diff(indent_level:, collection_prefix:, add_comma:) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/super_diff/operation_trees/hash.rb', line 8 def to_diff(indent_level:, collection_prefix:, add_comma:) DiffFormatters::Hash.call( self, indent_level: indent_level, collection_prefix: collection_prefix, add_comma: add_comma, ) end |