Class: SuperDiff::ObjectInspection::InspectionTree::UpdateTieredLines
- Inherits:
-
Object
- Object
- SuperDiff::ObjectInspection::InspectionTree::UpdateTieredLines
- Defined in:
- lib/super_diff/object_inspection/inspection_tree.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/super_diff/object_inspection/inspection_tree.rb', line 143 def call if rendering.is_a?(Array) concat_with_lines elsif rendering.is_a?(PrefixForNextNode) add_to_prefix elsif tiered_lines.any? add_to_last_line elsif index < nodes.size - 1 || rendering.is_a?(PreludeForNextNode) add_to_prelude else add_to_lines end end |