Sha256: 5d7787b036c2d274f4819bd136b59e7f3ee0e3977b53e09dc8d0659e012f7a27
Contents?: true
Size: 641 Bytes
Versions: 16
Compression:
Stored size: 641 Bytes
Contents
require 'byebug/history' module Byebug # # Interface class for remote use of byebug. # class RemoteInterface < Interface def initialize(socket) super() @input = socket @output = socket @error = socket end def read_command(prompt) super("PROMPT #{prompt}") end def confirm(prompt) super("CONFIRM #{prompt}") end def close output.close rescue IOError errmsg('Error closing the interface...') end def readline(prompt) output.puts(prompt) result = input.gets raise IOError unless result result.chomp end end end
Version data entries
16 entries across 15 versions & 3 rubygems