Skip to content

Commit d37e68d

Browse files
committed
Accept UnboundMethod in TracePoint#enable
1 parent 902ff7b commit d37e68d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/trace_point.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ class TracePoint
352352
# trace.enable { p tp.lineno }
353353
# #=> RuntimeError: access from outside
354354
#
355-
def enable: (?target: Method | RubyVM::InstructionSequence | Proc | nil, ?target_line: int?, ?target_thread: Thread | :default | nil) -> bool
356-
| [T] (?target: Method | RubyVM::InstructionSequence | Proc | nil, ?target_line: int?, ?target_thread: Thread | :default | nil) { () -> T } -> T
355+
def enable: (?target: Method | UnboundMethod | RubyVM::InstructionSequence | Proc | nil, ?target_line: int?, ?target_thread: Thread | :default | nil) -> bool
356+
| [T] (?target: Method | UnboundMethod | RubyVM::InstructionSequence | Proc | nil, ?target_line: int?, ?target_thread: Thread | :default | nil) { () -> T } -> T
357357

358358
# <!--
359359
# rdoc-file=trace_point.rb

0 commit comments

Comments
 (0)