method

trace

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: TracePoint
trace(*args) public

A convenience method for TracePoint.new, that activates the trace automatically.

trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] }
#=> #<TracePoint:enabled>

trace.enabled? #=> true
Show source
Register or log in to add new notes.