Class: SuperDiff::BinaryString::OperationTreeFlatteners::BinaryString

Inherits:
Core::AbstractOperationTreeFlattener show all
Defined in:
lib/super_diff/binary_string/operation_tree_flatteners/binary_string.rb

Instance Method Summary collapse

Methods inherited from Core::AbstractOperationTreeFlattener

#call

Instance Method Details

#build_tiered_linesObject



7
8
9
10
11
12
13
14
15
# File 'lib/super_diff/binary_string/operation_tree_flatteners/binary_string.rb', line 7

def build_tiered_lines
  operation_tree.map do |operation|
    Core::Line.new(
      type: operation.name,
      indentation_level: indentation_level,
      value: operation.value
    )
  end
end