summaryrefslogtreecommitdiff
path: root/trace_point.rb
diff options
context:
space:
mode:
authorUlysse Buonomo <[email protected]>2021-09-25 17:28:48 +0200
committerHiroshi SHIBATA <[email protected]>2021-10-30 10:23:07 +0900
commit1d0ce1a349bcf836d547d618b346345ae5fca44d ()
tree961273455becafbaf0b98e0f21dbe25118a12dff /trace_point.rb
parent4e0747a8a29e4d61744a802aee2c15289c2f9d19 (diff)
[DOC] Fix `TracePoint.trace` format [ci skip]
Signed-off-by: Ulysse Buonomo <[email protected]>
Notes: Merged: https://.com/ruby/ruby/pull/4894
-rw-r--r--trace_point.rb8
1 files changed, 3 insertions, 5 deletions
@@ -118,13 +118,11 @@ class TracePoint
Primitive.tracepoint_stat_s
end
- # Document-method: trace
- #
# call-seq:
- # TracePoint.trace(*events) { |obj| block } -> obj
#
- # A convenience method for TracePoint.new, that activates the trace
- # automatically.
#
# trace = TracePoint.trace(:call) { |tp| [tp.lineno, tp.event] }
# #=> #<TracePoint:enabled>