diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-02 16:45:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-02 16:45:35 +0000 |
commit | 29cef5f795043a048a58874d90de0dfe01aa12ea (patch) | |
tree | 6ae42a518c1c5705b8f097668d2b83413da0b6ec /lib/irb.rb | |
parent | 8815306dc5aadd777c887bbd8de7057598ad709c (diff) |
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
Diffstat (limited to 'lib/irb.rb')
-rw-r--r-- | lib/irb.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |