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