lib/rley/formatter/asciitree.rb in rley-0.7.03 vs lib/rley/formatter/asciitree.rb in rley-0.7.04
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require_relative 'base_formatter'
module Rley # This module is used as a namespace
# Namespace dedicated to parse tree formatters.
@@ -98,10 +100,10 @@
# 'root', 'first', 'first_and_last', 'last', 'other'
def path_prefix()
return '' if ranks.empty?
- prefix = ''
+ prefix = +''
@ranks.each_with_index do |rank, i|
next if i.zero?
case rank
when 'first', 'other'