Class: Byebug::ControlProcessor

Inherits:
CommandProcessor show all
Defined in:
lib/byebug/processors/control_processor.rb

Overview

Processes commands when there’s not program running

Instance Attribute Summary

Attributes inherited from CommandProcessor

#context, #interface, #prev_line

Instance Method Summary collapse

Methods inherited from CommandProcessor

#at_breakpoint, #at_catchpoint, #at_end, #at_line, #at_return, #at_tracing, #command_list, #initialize, #printer, #proceed!, #process_commands

Methods included from Helpers::EvalHelper

#error_eval, #multiple_thread_eval, #separate_thread_eval, #silent_eval, #warning_eval

Constructor Details

This class inherits a constructor from Byebug::CommandProcessor

Instance Method Details

#commandsObject

Available commands



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

def commands
  super.select(&:allow_in_control)
end

#promptObject

Prompt shown before reading a command.



20
21
22
# File 'lib/byebug/processors/control_processor.rb', line 20

def prompt
  "(byebug:ctrl) "
end