Class: Byebug::Interface
- Inherits:
-
Object
- Object
- Byebug::Interface
- Defined in:
- lib/byebug/interface.rb
Overview
Main Interface class
Contains common functionality to all implemented interfaces.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#command_queue ⇒ Object
Returns the value of attribute command_queue.
-
#restart_file ⇒ Object
Returns the value of attribute restart_file.
Instance Method Summary collapse
-
#errmsg(message) ⇒ Object
Common routine for reporting byebug error messages.
-
#initialize ⇒ Interface
constructor
A new instance of Interface.
Constructor Details
#initialize ⇒ Interface
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_queue ⇒ Object
Returns the value of attribute command_queue.
11 12 13 |
# File 'lib/byebug/interface.rb', line 11 def command_queue @command_queue end |
#restart_file ⇒ Object
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() print("*** #{}\n") end |