1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2002-10-02 16:45:35 +00:00
parent 8815306dc5
commit 29cef5f795
22 changed files with 91 additions and 93 deletions

View file

@ -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