ruby-changes:48961
From: nobu <ko1@a...>
Date: Fri, 8 Dec 2017 16:17:38 +0900 (JST)
Subject: [ruby-changes:48961] nobu:r61080 (trunk): pp.rb: rdoc
nobu 2017-12-08 16:17:34 +0900 (Fri, 08 Dec 2017) New Revision: 61080 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61080 Log: pp.rb: rdoc * lib/pp.rb (pp): move pp alias before its rdoc, not to prevent parsing. Modified files: trunk/lib/pp.rb Index: lib/pp.rb =================================================================== --- lib/pp.rb (revision 61079) +++ lib/pp.rb (revision 61080) @@ -549,10 +549,10 @@ module Kernel https://github.com/ruby/ruby/blob/trunk/lib/pp.rb#L549 PP.pp(self, ''.dup) end + alias __pp_backup__ pp if method_defined?(:pp) # prints arguments in pretty form. # # pp returns argument(s). - alias __pp_backup__ pp if method_defined?(:pp) def pp(*objs) objs.each {|obj| PP.pp(obj) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/