From 8c5fd1b57790223f9c5e167147564992adc3dad6 Mon Sep 17 00:00:00 2001 From: Dewayne VanHoozer Date: Sat, 5 Sep 2020 13:52:42 -0500 Subject: changed str << to str += --- lib/slop/options.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 lib/slop/options.rb diff --git a/lib/slop/options.rb b/lib/slop/options.rb old mode 100644 new mode 100755 index 875fcfe..17e9501 --- a/lib/slop/options.rb +++ b/lib/slop/options.rb @@ -105,14 +105,14 @@ module Slop options.select.each_with_index.sort_by{ |o,i| [o.tail, i] }.each do |opt, i| # use the index to fetch an associated separator if sep = separators[i] - str << "#{sep}\n" + str += "#{sep}\n" end - str << "#{prefix}#{opt.to_s(offset: len)}\n" if opt.help? + str += "#{prefix}#{opt.to_s(offset: len)}\n" if opt.help? end if sep = separators[options.size] - str << "#{sep}\n" + str += "#{sep}\n" end str -- cgit v1.2.1