Skip to content

Commit

Permalink
[DOC] Fix TracePoint.trace format [ci skip]
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com>
  • Loading branch information
BuonOmo authored and hsbt committed Oct 30, 2021
1 parent 4e0747a commit 1d0ce1a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions trace_point.rb
Expand Up @@ -118,13 +118,11 @@ def self.stat
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>
Expand Down

0 comments on commit 1d0ce1a

Please sign in to comment.