Class: Byebug::ControlProcessor
- Inherits:
-
CommandProcessor
- Object
- CommandProcessor
- Byebug::ControlProcessor
- Defined in:
- lib/byebug/processors/control_processor.rb
Overview
Processes commands when there’s not program running
Instance Attribute Summary
Attributes inherited from CommandProcessor
Instance Method Summary collapse
-
#commands ⇒ Object
Available commands.
-
#initialize(context = nil) ⇒ ControlProcessor
constructor
A new instance of ControlProcessor.
-
#prompt ⇒ Object
Prompt shown before reading a command.
Methods inherited from CommandProcessor
#at_breakpoint, #at_catchpoint, #at_end, #at_line, #at_return, #at_tracing, #command_list, #interface, #printer, #proceed!, #process_commands
Methods included from Helpers::EvalHelper
#error_eval, #silent_eval, #single_thread_eval, #thread_safe_eval, #warning_eval
Constructor Details
#initialize(context = nil) ⇒ ControlProcessor
Returns a new instance of ControlProcessor.
6 7 8 |
# File 'lib/byebug/processors/control_processor.rb', line 6 def initialize(context = nil) @context = context end |
Instance Method Details
#commands ⇒ Object
Available commands
13 14 15 |
# File 'lib/byebug/processors/control_processor.rb', line 13 def commands super.select(&:allow_in_control) end |
#prompt ⇒ Object
Prompt shown before reading a command.
20 21 22 |
# File 'lib/byebug/processors/control_processor.rb', line 20 def prompt '(byebug:ctrl) ' end |