Skip to content

Commit

Permalink
Move Session#exnted_feature into Session class
Browse files Browse the repository at this point in the history
Currently, `exnted_feature` method is defined outside of Session class. This PR fixes it.
  • Loading branch information
ono-max authored and ko1 committed Apr 21, 2023
1 parent 7b27350 commit ce7e342
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/debug/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ce7e342

Please sign in to comment.