Class: Debugger::RemoteInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-debug/interface.rb

Overview

:nodoc:

Instance Method Summary collapse

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

#closeObject



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


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