class Byebug::DAP::STDIO
A debug session 'connection' using STDIN and STDOUT. @api private
Public Class Methods
new()
click to toggle source
# File lib/byebug/dap/helpers/stdio.rb, line 7 def initialize @in = STDIN.dup @out = STDOUT.dup @in.sync = true @out.sync = true end
Public Instance Methods
close()
click to toggle source
# File lib/byebug/dap/helpers/stdio.rb, line 14 def close; @in.close; @out.close; end
closed?()
click to toggle source
# File lib/byebug/dap/helpers/stdio.rb, line 17 def closed?; @in.closed? || @out.closed?; end
flush()
click to toggle source
# File lib/byebug/dap/helpers/stdio.rb, line 15 def flush; @in.flush; @out.flush; end
fsync()
click to toggle source
# File lib/byebug/dap/helpers/stdio.rb, line 16 def fsync; @in.fsync; @out.fsync; end