Skip to content

Commit c5eb243

Browse files
committed
[DOC] update target_thread to TracePoint#enable
1 parent 8640153 commit c5eb243

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

prelude.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def write_nonblock(buf, exception: true)
134134

135135
class TracePoint
136136
# call-seq:
137-
# trace.enable(target: nil, target_line: nil) -> true or false
138-
# trace.enable(target: nil, target_line: nil) { block } -> obj
137+
# trace.enable(target: nil, target_line: nil, target_thread: nil) -> true or false
138+
# trace.enable(target: nil, target_line: nil, target_thread: nil) { block } -> obj
139139
#
140140
# Activates the trace.
141141
#
@@ -163,9 +163,10 @@ class TracePoint
163163
# trace.enabled?
164164
# #=> false
165165
#
166-
# <i>target</i> and <i>target_line</i> parameters are used to limit tracing
167-
# only to specified code objects. <i>target</i> should be a code object for
168-
# which RubyVM::InstructionSequence.of will return an instruction sequence.
166+
# +target+, +target_line+ and +target_thread+ parameters are used to
167+
# limit tracing only to specified code objects. +target+ should be a
168+
# code object for which RubyVM::InstructionSequence.of will return
169+
# an instruction sequence.
169170
#
170171
# t = TracePoint.new(:line) { |tp| p tp }
171172
#

0 commit comments

Comments
 (0)