Class: Byebug::ControlCommandProcessor::State
- Inherits:
-
Object
- Object
- Byebug::ControlCommandProcessor::State
- Extended by:
- Forwardable
- Defined in:
- lib/byebug/processors/control_command_processor.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
Instance Method Summary collapse
- #confirm(*args) ⇒ Object
- #context ⇒ Object
- #file ⇒ Object
-
#initialize(interface, commands) ⇒ State
constructor
A new instance of State.
- #proceed ⇒ Object
Constructor Details
#initialize(interface, commands) ⇒ State
Returns a new instance of State.
49 50 51 52 |
# File 'lib/byebug/processors/control_command_processor.rb', line 49 def initialize(interface, commands) @interface = interface @commands = commands end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
47 48 49 |
# File 'lib/byebug/processors/control_command_processor.rb', line 47 def commands @commands end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
47 48 49 |
# File 'lib/byebug/processors/control_command_processor.rb', line 47 def interface @interface end |
Instance Method Details
#confirm(*args) ⇒ Object
60 61 62 |
# File 'lib/byebug/processors/control_command_processor.rb', line 60 def confirm(*args) 'y' end |
#context ⇒ Object
64 65 66 |
# File 'lib/byebug/processors/control_command_processor.rb', line 64 def context nil end |
#file ⇒ Object
68 69 70 71 |
# File 'lib/byebug/processors/control_command_processor.rb', line 68 def file errmsg "No filename given.\n" throw :debug_error end |
#proceed ⇒ Object
54 55 |
# File 'lib/byebug/processors/control_command_processor.rb', line 54 def proceed end |