method
add_filter
v2_5_5 -
Show latest stable
- Class:
Tracer
add_filter(p = proc)public
Used to filter unwanted trace output
Example which only outputs lines of code executed within the Kernel class:
Tracer.add_filter do |event, file, line, id, binding, klass, *rest| "Kernel" == klass.to_s end