mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
prelude.rb: Add Kernel#pp, a trigger for lib/pp.rb
[Feature #14123] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
87bcbf9ef5
commit
23c1fccf83
3 changed files with 12 additions and 0 deletions
10
prelude.rb
10
prelude.rb
|
@ -141,3 +141,13 @@ class Binding
|
|||
irb
|
||||
end
|
||||
end
|
||||
|
||||
module Kernel
|
||||
# prints arguments in pretty form.
|
||||
#
|
||||
# pp returns argument(s).
|
||||
def pp(*objs)
|
||||
require 'pp'
|
||||
pp(objs)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue