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

Enable the document for Kernel[#.]pp.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2016-11-11 03:04:38 +00:00
parent def18ca59d
commit 19e6276125

View file

@ -14,17 +14,16 @@ module Kernel
PP.pp(self, ''.dup)
end
private
# prints arguments in pretty form.
#
# pp returns argument(s).
def pp(*objs) # :nodoc:
def pp(*objs)
objs.each {|obj|
PP.pp(obj)
}
objs.size <= 1 ? objs.first : objs
end
module_function :pp # :nodoc:
module_function :pp
end
##