diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-06-30 21:23:54 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-06-30 21:23:54 +0900 |
commit | c5eb24349a4535948514fe765c3ddb0628d81004 (patch) | |
tree | c7a769abd7d0c4dd263b5c41cb8b04ef0512dcd8 | |
parent | 8640153e59a106ab2331effc33dcf03415a7e89c (diff) |
[DOC] update target_thread to TracePoint#enable
-rw-r--r-- | prelude.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/prelude.rb b/prelude.rb index c2dc85ad88..4f4277b664 100644 --- a/prelude.rb +++ b/prelude.rb @@ -134,8 +134,8 @@ end class TracePoint # call-seq: - # trace.enable(target: nil, target_line: nil) -> true or false - # trace.enable(target: nil, target_line: nil) { block } -> obj + # trace.enable(target: nil, target_line: nil, target_thread: nil) -> true or false + # trace.enable(target: nil, target_line: nil, target_thread: nil) { block } -> obj # # Activates the trace. # @@ -163,9 +163,10 @@ class TracePoint # trace.enabled? # #=> false # - # <i>target</i> and <i>target_line</i> parameters are used to limit tracing - # only to specified code objects. <i>target</i> should be a code object for - # which RubyVM::InstructionSequence.of will return an instruction sequence. + # +target+, +target_line+ and +target_thread+ parameters are used to + # limit tracing only to specified code objects. +target+ should be a + # code object for which RubyVM::InstructionSequence.of will return + # an instruction sequence. # # t = TracePoint.new(:line) { |tp| p tp } # |