1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

pp.rb: rdoc

* lib/pp.rb (pp): move pp alias before its rdoc, not to prevent
  parsing.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-12-08 07:17:34 +00:00
parent ec74acd1a9
commit 60771d1315

View file

@ -549,10 +549,10 @@ module Kernel
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)