From 72e60a04372c03e40d3954063e6e520541d5ca2d Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 26 Nov 2018 20:16:14 +0000 Subject: `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 --- prelude.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prelude.rb') 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 -- cgit v1.2.3