diff options
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 |