From 29cef5f795043a048a58874d90de0dfe01aa12ea 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/irb.rb') diff --git a/lib/irb.rb b/lib/irb.rb index b5f12a66f8..a77585b641 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -149,8 +149,8 @@ module IRB output_value if @context.echo? rescue StandardError, ScriptError, Abort $! = RuntimeError.new("unknown exception raised") unless $! - print $!.type, ": ", $!, "\n" - if $@[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && $!.type.to_s !~ /^IRB/ + print $!.class, ": ", $!, "\n" + if $@[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && $!.class.to_s !~ /^IRB/ irb_bug = true else irb_bug = false @@ -307,7 +307,7 @@ module IRB ary.push format("%s=%s", iv, eval(iv)) end end - format("#<%s: %s>", type, ary.join(", ")) + format("#<%s: %s>", self.class, ary.join(", ")) end end -- cgit v1.2.3