Class: SuperDiff::DiffFormatters::Array
- Defined in:
- lib/super_diff/diff_formatters/array.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.applies_to?(operations) ⇒ Boolean
4 5 6 |
# File 'lib/super_diff/diff_formatters/array.rb', line 4 def self.applies_to?(operations) operations.is_a?(OperationSequences::Array) end |
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/super_diff/diff_formatters/array.rb', line 8 def call Collection.call( open_token: "[", close_token: "]", collection_prefix: collection_prefix, build_item_prefix: proc { "" }, operations: operations, indent_level: indent_level, add_comma: add_comma?, ) end |