From e43dd886ae45b38fed4bb387a6452e9f1792b131 Mon Sep 17 00:00:00 2001 From: Naoto Ono Date: Sun, 16 Apr 2023 19:19:38 +0900 Subject: [PATCH] Move `Session#exnted_feature` into Session class Currently, `exnted_feature` method is defined outside of Session class. This PR fixes it. --- lib/debug/session.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/debug/session.rb b/lib/debug/session.rb index 2595869f2..6007846d7 100644 --- a/lib/debug/session.rb +++ b/lib/debug/session.rb @@ -1993,6 +1993,13 @@ def before_fork need_lock = true def after_fork_parent @ui.after_fork_parent end + + # experimental API + def extend_feature session: nil, thread_client: nil, ui: nil + Session.include session if session + ThreadClient.include thread_client if thread_client + @ui.extend ui if ui + end end class ProcessGroup @@ -2147,13 +2154,6 @@ def flush end end - # experimental API - def extend_feature session: nil, thread_client: nil, ui: nil - Session.include session if session - ThreadClient.include thread_client if thread_client - @ui.extend ui if ui - end - # manual configuration methods def self.add_line_breakpoint file, line, **kw