Class: Debugger::RemoteInterface
- Inherits:
-
Object
- Object
- Debugger::RemoteInterface
- Defined in:
- lib/ruby-debug/interface.rb
Overview
:nodoc:
Instance Method Summary collapse
- #close ⇒ Object
- #confirm(prompt) ⇒ Object
-
#initialize(socket) ⇒ RemoteInterface
constructor
A new instance of RemoteInterface.
- #print(*args) ⇒ Object
- #read_command(prompt) ⇒ Object
Constructor Details
#initialize(socket) ⇒ RemoteInterface
Returns a new instance of RemoteInterface.
59 60 61 |
# File 'lib/ruby-debug/interface.rb', line 59 def initialize(socket) @socket = socket end |
Instance Method Details
#close ⇒ Object
75 76 77 78 |
# File 'lib/ruby-debug/interface.rb', line 75 def close @socket.close rescue Exception end |
#confirm(prompt) ⇒ Object
67 68 69 |
# File 'lib/ruby-debug/interface.rb', line 67 def confirm(prompt) send_command "CONFIRM #{prompt}" end |
#print(*args) ⇒ Object
71 72 73 |
# File 'lib/ruby-debug/interface.rb', line 71 def print(*args) @socket.printf(*args) end |
#read_command(prompt) ⇒ Object
63 64 65 |
# File 'lib/ruby-debug/interface.rb', line 63 def read_command(prompt) send_command "PROMPT #{prompt}" end |