TracePoint.trace(*events) { |obj| block } â obj
Class Public methods
A convenience method for ::new, that activates the trace automatically.
1 2 3 4 | trace = TracePoint.trace( :call ) { |tp| [tp.lineno, tp.event] } #=> #<TracePoint:0x007f786a452448> trace.enabled? #=> true |
Please login to continue.