summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-11 03:04:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-11 03:04:38 +0000
commit19e6276125c9d0c98a1defec7254a0ded801f2a7 (patch)
treee682a4ef2cefb9b41120b6a8c46361ff46996af4
parentdef18ca59dce941a3c7ed776f14fc273eb987800 (diff)
Enable the document for Kernel[#.]pp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/pp.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 5356b7ce25..aa2b67a420 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -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
##