From 8e011248465bae7b06203bc2c260432454bcac21 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 2 Oct 2002 16:45:35 +0000 Subject: use Object#class instead of deprecated Object#type. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/shell/command-processor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/shell/command-processor.rb') diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index 459cf858d..79310359e 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -49,7 +49,7 @@ class Shell rescue LoadError, Errno::ENOENT rescue print "load error: #{rc}\n" - print $!.type, ": ", $!, "\n" + print $!.class, ": ", $!, "\n" for err in $@[0, $@.size - 2] print "\t", err, "\n" end @@ -277,7 +277,7 @@ class Shell when IO AppendIO.new(@shell, to, filter) else - Shell.Fail CanNotMethodApply, "append", to.type + Shell.Fail CanNotMethodApply, "append", to.class end end -- cgit