From f8fa8dd9de59733315ff96fb8d4f6c3fbace1050 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 25 Jan 2018 00:42:08 +0000 Subject: revert r62032 because it refers to a undefined variable git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/optparse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/optparse.rb') diff --git a/lib/optparse.rb b/lib/optparse.rb index afd4d45ed4..05415901a3 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1237,7 +1237,7 @@ XXX # +indent+:: Indentation, defaults to @summary_indent. # def summarize(to = [], width = @summary_width, max = width - 1, indent = @summary_indent, &blk) - blk ||= proc {|l| to << (l.index(nl, -1) ? l : l + nl)} + blk ||= proc {|l| to << (l.index($/, -1) ? l : l + $/)} visit(:summarize, {}, {}, width, max, indent, &blk) to end -- cgit v1.2.3