summaryrefslogtreecommitdiff
path: root/lib/pp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pp.rb')
-rw-r--r--lib/pp.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 2804ecd117..b02e954a7d 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -54,12 +54,12 @@ module Kernel
private
# prints arguments in pretty form.
#
- # pp returns nil.
+ # pp returns argument(s).
def pp(*objs) # :doc:
objs.each {|obj|
PP.pp(obj)
}
- nil
+ objs.size <= 1 ? objs.first : objs
end
module_function :pp
end