Class: Byebug::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/byebug/interface.rb

Overview

Main Interface class

Contains common functionality to all implemented interfaces.

Direct Known Subclasses

LocalInterface, RemoteInterface, ScriptInterface

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInterface

Returns a new instance of Interface.



13
14
15
# File 'lib/byebug/interface.rb', line 13

def initialize
  @command_queue, @restart_file = [], nil
end

Instance Attribute Details

#command_queueObject

Returns the value of attribute command_queue.



11
12
13
# File 'lib/byebug/interface.rb', line 11

def command_queue
  @command_queue
end

#restart_fileObject

Returns the value of attribute restart_file.



11
12
13
# File 'lib/byebug/interface.rb', line 11

def restart_file
  @restart_file
end

Instance Method Details

#errmsg(message) ⇒ Object

Common routine for reporting byebug error messages. Derived classes may want to override this to capture output.



21
22
23
# File 'lib/byebug/interface.rb', line 21

def errmsg(message)
  print("*** #{message}\n")
end