ruby-changes:53923
From: mame <ko1@a...>
Date: Mon, 3 Dec 2018 10:39:49 +0900 (JST)
Subject: [ruby-changes:53923] mame:r66143 (trunk): lib/pp.rb (Range#pretty_print): support endless range
mame 2018-12-03 10:39:45 +0900 (Mon, 03 Dec 2018) New Revision: 66143 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66143 Log: lib/pp.rb (Range#pretty_print): support endless range `pp(1..)` should print `"(1..)"` instead of `"(1..nil)"`. Modified files: trunk/lib/pp.rb Index: lib/pp.rb =================================================================== --- lib/pp.rb (revision 66142) +++ lib/pp.rb (revision 66143) @@ -386,7 +386,7 @@ class Range # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/pp.rb#L386 q.breakable '' q.text(self.exclude_end? ? '...' : '..') q.breakable '' - q.pp self.end + q.pp self.end if self.end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/