summaryrefslogtreecommitdiff
path: root/lib/pp.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-25 18:24:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-03-25 18:24:46 +0000
commit4795daf1bce88cca8c3b14dc5c75a349838ee98a (patch)
tree435117aeb9991ed29d95333456ea504ca3563911 /lib/pp.rb
parentc4af72cd46e468374362e9d78bd7f969e560bc62 (diff)
* lib/pp.rb (pp): return nil like p.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pp.rb')
-rw-r--r--lib/pp.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 0a18a6f318..1698084e63 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -55,6 +55,8 @@ I like the latter. If you do too, this library is for you.
: pp(obj)
output ((|obj|)) to (({$>})) in pretty printed format.
+ It returns (({nil})).
+
== Customized output
To define your customized pretty printing function for your class,
redefine a method (({pretty_print(((|pp|)))})) in the class.
@@ -110,6 +112,7 @@ module Kernel
objs.each {|obj|
PP.pp(obj)
}
+ nil
end
end