[前][次][番号順一覧][スレッド一覧]

ruby-changes:49916

From: ko1 <ko1@a...>
Date: Thu, 25 Jan 2018 09:42:12 +0900 (JST)
Subject: [ruby-changes:49916] ko1:r62034 (trunk): revert r62032 because it refers to a undefined variable

ko1	2018-01-25 09:42:08 +0900 (Thu, 25 Jan 2018)

  New Revision: 62034

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62034

  Log:
    revert r62032 because it refers to a undefined variable

  Modified files:
    trunk/lib/optparse.rb
Index: lib/optparse.rb
===================================================================
--- lib/optparse.rb	(revision 62033)
+++ lib/optparse.rb	(revision 62034)
@@ -1237,7 +1237,7 @@ XXX https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L1237
   # +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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]