[DOC] Fix `TracePoint.trace` format [ci skip]

Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
This commit is contained in:
Ulysse Buonomo 2021-09-25 17:28:48 +02:00 committed by Hiroshi SHIBATA
parent 4e0747a8a2
commit 1d0ce1a349
Notes: git 2021-10-30 10:23:28 +09:00
1 changed files with 3 additions and 5 deletions

View File

@ -118,13 +118,11 @@ class TracePoint
Primitive.tracepoint_stat_s
end
# Document-method: trace
#
# call-seq:
# TracePoint.trace(*events) { |obj| block } -> obj
# TracePoint.trace(*events) { |obj| block } -> obj
#
# A convenience method for TracePoint.new, that activates the trace
# automatically.
# A convenience method for TracePoint.new, that activates the trace
# automatically.
#
# trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] }
# #=> #<TracePoint:enabled>