diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-14 06:16:08 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-14 06:16:08 +0000 |
commit | 4a9e592e15bc1df3df328d0b05e923a46957909e (patch) | |
tree | 0c48d057a18adddc60b9aadd6120323ec5acf2a6 | |
parent | be1151697e59923e9b5f5dd6f13005e61c0a6d68 (diff) | |
download | ruby-4a9e592e15bc1df3df328d0b05e923a46957909e.tar.gz ruby-4a9e592e15bc1df3df328d0b05e923a46957909e.tar.xz ruby-4a9e592e15bc1df3df328d0b05e923a46957909e.zip |
* lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rb
fixed warning of 'ruby -w'
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/irb/ext/history.rb | 2 | ||||
-rw-r--r-- | lib/irb/notifier.rb | 2 | ||||
-rw-r--r-- | lib/irb/output-method.rb | 6 |
4 files changed, 11 insertions, 6 deletions
@@ -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. diff --git a/lib/irb/ext/history.rb b/lib/irb/ext/history.rb index 1e978181a..40f8692e8 100644 --- a/lib/irb/ext/history.rb +++ b/lib/irb/ext/history.rb @@ -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) diff --git a/lib/irb/notifier.rb b/lib/irb/notifier.rb index 22752bf89..c8e66fa85 100644 --- a/lib/irb/notifier.rb +++ b/lib/irb/notifier.rb @@ -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 diff --git a/lib/irb/output-method.rb b/lib/irb/output-method.rb index 93db767de..b9a3a8851 100644 --- a/lib/irb/output-method.rb +++ b/lib/irb/output-method.rb @@ -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 |