Class: SuperDiff::OperationTrees::Array
- Inherits:
-
Base
- Object
- SimpleDelegator
- Base
- SuperDiff::OperationTrees::Array
show all
- Defined in:
- lib/super_diff/operation_trees/array.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#pretty_print
Class Method Details
.applies_to?(value) ⇒ Boolean
4
5
6
|
# File 'lib/super_diff/operation_trees/array.rb', line 4
def self.applies_to?(value)
value.is_a?(::Array)
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/array.rb', line 8
def to_diff(indent_level:, collection_prefix:, add_comma:)
DiffFormatters::Array.call(
self,
indent_level: indent_level,
collection_prefix: collection_prefix,
add_comma: add_comma,
)
end
|