1
0
Fork 0
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:
keiju 2005-04-14 06:16:08 +00:00
parent ff958cd44e
commit 2ac523a891
4 changed files with 11 additions and 6 deletions

View file

@ -1,4 +1,9 @@
Thu Apr 14 05:35:45 2005 Keiju Ishitsuka <keiju@gentoo>
Thu Apr 14 15:10:30 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
* lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rb
fixed warning of 'ruby -w'
Thu Apr 14 05:35:45 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
* doc/irb/irb.rd.ja: a lost of release IRB 0.9.5.

View file

@ -33,7 +33,7 @@ module IRB
attr_reader :eval_history
def eval_history=(no)
if no
if @eval_history
if defined?(@eval_history) && @eval_history
@eval_history_values.size(no)
else
@eval_history_values = History.new(no)

View file

@ -52,7 +52,7 @@ module IRB
def puts(*objs)
if notify?
@base_notifier.puts *objs.collect{|obj| prefix + obj.to_s}
@base_notifier.puts(*objs.collect{|obj| prefix + obj.to_s})
end
end

View file

@ -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