Skip to content

Commit ce7e342

Browse files
ono-maxko1
authored andcommitted
Move Session#exnted_feature into Session class
Currently, `exnted_feature` method is defined outside of Session class. This PR fixes it.
1 parent 7b27350 commit ce7e342

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/debug/session.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -1993,6 +1993,13 @@ def before_fork need_lock = true
19931993
def after_fork_parent
19941994
@ui.after_fork_parent
19951995
end
1996+
1997+
# experimental API
1998+
def extend_feature session: nil, thread_client: nil, ui: nil
1999+
Session.include session if session
2000+
ThreadClient.include thread_client if thread_client
2001+
@ui.extend ui if ui
2002+
end
19962003
end
19972004

19982005
class ProcessGroup
@@ -2147,13 +2154,6 @@ def flush
21472154
end
21482155
end
21492156

2150-
# experimental API
2151-
def extend_feature session: nil, thread_client: nil, ui: nil
2152-
Session.include session if session
2153-
ThreadClient.include thread_client if thread_client
2154-
@ui.extend ui if ui
2155-
end
2156-
21572157
# manual configuration methods
21582158

21592159
def self.add_line_breakpoint file, line, **kw

0 commit comments

Comments
 (0)