summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDewayne VanHoozer <dvanhoozer@gmail.com>2020-09-05 13:52:42 -0500
committerDewayne VanHoozer <dvanhoozer@gmail.com>2020-09-05 13:52:42 -0500
commit8c5fd1b57790223f9c5e167147564992adc3dad6 (patch)
tree15b45b72a28145ee674d90c6bb21a54488eae839
parent35c3f65ab9bf381866bc3dffc0123d7eee790f0a (diff)
downloadslop-8c5fd1b57790223f9c5e167147564992adc3dad6.tar.gz
changed str << to str +=
-rwxr-xr-x[-rw-r--r--]lib/slop/options.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/slop/options.rb b/lib/slop/options.rb
index 875fcfe..17e9501 100644..100755
--- 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