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:
parent
def18ca59d
commit
19e6276125
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue