Class: SuperDiff::Core::DiffFormatters::MultilineString
- Inherits:
-
Base
- Object
- Base
- SuperDiff::Core::DiffFormatters::MultilineString
- Defined in:
- lib/super_diff/basic/diff_formatters/multiline_string.rb
Overview
TODO: Remove
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.applies_to?(operation_tree) ⇒ Boolean
8 9 10 |
# File 'lib/super_diff/basic/diff_formatters/multiline_string.rb', line 8 def self.applies_to?(operation_tree) operation_tree.is_a?(OperationTrees::MultilineString) end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/super_diff/basic/diff_formatters/multiline_string.rb', line 12 def call lines.join("\n") end |