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/tracer.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/tracer.rb')
-rw-r--r-- | lib/tracer.rb | 6 |
1 files changed, 2 insertions, 4 deletions
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 |