ruby-changes:56298
From: Nobuyoshi <ko1@a...>
Date: Sun, 30 Jun 2019 21:48:51 +0900 (JST)
Subject: [ruby-changes:56298] Nobuyoshi Nakada: c5eb24349a (trunk): [DOC] update target_thread to TracePoint#enable
https://git.ruby-lang.org/ruby.git/commit/?id=c5eb24349a From c5eb24349a4535948514fe765c3ddb0628d81004 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 30 Jun 2019 21:23:54 +0900 Subject: [DOC] update target_thread to TracePoint#enable diff --git a/prelude.rb b/prelude.rb index c2dc85a..4f4277b 100644 --- a/prelude.rb +++ b/prelude.rb @@ -134,8 +134,8 @@ end https://github.com/ruby/ruby/blob/trunk/prelude.rb#L134 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 https://github.com/ruby/ruby/blob/trunk/prelude.rb#L163 # 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 } # -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/