mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rb
fixed warning of 'ruby -w' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ff958cd44e
commit
2ac523a891
4 changed files with 11 additions and 6 deletions
|
@ -68,18 +68,18 @@ module IRB
|
|||
end
|
||||
|
||||
def pp(*objs)
|
||||
puts *objs.collect{|obj| obj.inspect}
|
||||
puts(*objs.collect{|obj| obj.inspect})
|
||||
end
|
||||
|
||||
def ppx(prefix, *objs)
|
||||
puts *objs.collect{|obj| prefix+obj.inspect}
|
||||
puts(*objs.collect{|obj| prefix+obj.inspect})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class StdioOutputMethod<OutputMethod
|
||||
def print(*opts)
|
||||
STDOUT.print *opts
|
||||
STDOUT.print(*opts)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue