aboutsummaryrefslogtreecommitdiffstats
path: root/prelude.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-26 20:16:14 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-26 20:16:14 +0000
commit72e60a04372c03e40d3954063e6e520541d5ca2d (patch)
tree3a64c81a0545e2770905e6ec7f2ac39247218a48 /prelude.rb
parent6e33c16ffdabf6b8c64a49344f830a25a2b5bccf (diff)
downloadruby-72e60a04372c03e40d3954063e6e520541d5ca2d.tar.gz
`TracePoint#enable(target_line:)` is supported. [Feature #15289]
* vm_trace.c: `TracePoint#enable(target_line:)` is supported. This option enables a hook only at specified target_line. target_line should be combination with target and :line event. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'prelude.rb')
-rw-r--r--prelude.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/prelude.rb b/prelude.rb
index 473d7d32c8..1d62c13219 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -133,8 +133,8 @@ class IO
end
class TracePoint
- def enable target: nil, &blk
- self.__enable target, &blk
+ def enable target: nil, target_line: nil, &blk
+ self.__enable target, target_line, &blk
end
end