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/tracer.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/tracer.rb') diff --git a/lib/tracer.rb b/lib/tracer.rb index 6ff9caa98c..70be58da5a 100644 --- a/lib/tracer.rb +++ b/lib/tracer.rb @@ -62,9 +62,7 @@ class Tracer off end else - set_trace_func proc{|event, file, line, id, binding, klass, *rest| - trace_func event, file, line, id, binding, klass - } + set_trace_func method(:trace_func).to_proc stdout.print "Trace on\n" if Tracer.verbose? end end @@ -114,7 +112,7 @@ class Tracer end end - def trace_func(event, file, line, id, binding, klass) + def trace_func(event, file, line, id, binding, klass, *) return if file == MY_FILE_NAME for p in @filters -- cgit v1.2.3