Class: MethodTracer
- Inherits:
-
Object
- Object
- MethodTracer
- Defined in:
- lib/method_tracer.rb
Class Method Summary collapse
Class Method Details
.trace ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/method_tracer.rb', line 2 def self.trace set_trace_func proc { |event, file, line, id, binding, classname| printf "%s:%-2d %10s %8s\n", file, line, id, classname if event == 'call' } yield set_trace_func nil end |