mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Fix TracePoint.trace
format [ci skip]
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
This commit is contained in:
parent
4e0747a8a2
commit
1d0ce1a349
Notes:
git
2021-10-30 10:23:28 +09:00
1 changed files with 3 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue