ruby-changes:69534
From: Ulysse <ko1@a...>
Date: Sat, 30 Oct 2021 10:23:21 +0900 (JST)
Subject: [ruby-changes:69534] 1d0ce1a349 (master): [DOC] Fix `TracePoint.trace` format [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=1d0ce1a349 From 1d0ce1a349bcf836d547d618b346345ae5fca44d Mon Sep 17 00:00:00 2001 From: Ulysse Buonomo <buonomo.ulysse@g...> Date: Sat, 25 Sep 2021 17:28:48 +0200 Subject: [DOC] Fix `TracePoint.trace` format [ci skip] Signed-off-by: Ulysse Buonomo <buonomo.ulysse@g...> --- trace_point.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/trace_point.rb b/trace_point.rb index 42724486829..7c2fdd52562 100644 --- a/trace_point.rb +++ b/trace_point.rb @@ -118,13 +118,11 @@ class TracePoint https://github.com/ruby/ruby/blob/trunk/trace_point.rb#L118 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> -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/