diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-26 03:41:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-26 03:41:04 +0000 |
commit | db1de35a3138ffecc6210a9dd5a26880390ef60a (patch) | |
tree | 6f18d0e1673845daaed75bca2d81136073ce1cac /lib/optparse.rb | |
parent | f36688449b4ddbc07e3bfe4f0cd1297146b7ab3b (diff) | |
download | ruby-db1de35a3138ffecc6210a9dd5a26880390ef60a.tar.gz |
optparse.rb: froze string literals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
-rw-r--r-- | lib/optparse.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 7d366a7353..11b122de95 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # optparse.rb - command-line option analysis with the OptionParser class. # @@ -577,7 +577,7 @@ class OptionParser while s = lopts.shift l = left[-1].length + s.length l += arg.length if left.size == 1 && arg - l < max or sopts.empty? or left << '' + l < max or sopts.empty? or left << +'' left[-1] << (left[-1].empty? ? ' ' * 4 : ', ') << s end @@ -1136,7 +1136,7 @@ XXX # def banner unless @banner - @banner = "Usage: #{program_name} [options]" + @banner = +"Usage: #{program_name} [options]" visit(:add_banner, @banner) end @banner @@ -1180,7 +1180,7 @@ XXX # def ver if v = version - str = "#{program_name} #{[v].join('.')}" + str = +"#{program_name} #{[v].join('.')}" str << " (#{v})" if v = release str end |