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.
51 52 53 54 |
# File 'lib/byebug/processors/control_command_processor.rb', line 51 def initialize(interface, commands) @interface = interface @commands = commands end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
49 50 51 |
# File 'lib/byebug/processors/control_command_processor.rb', line 49 def commands @commands end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
49 50 51 |
# File 'lib/byebug/processors/control_command_processor.rb', line 49 def interface @interface end |
Instance Method Details
#confirm(*_args) ⇒ Object
62 63 64 |
# File 'lib/byebug/processors/control_command_processor.rb', line 62 def confirm(*_args) 'y' end |
#context ⇒ Object
66 67 68 |
# File 'lib/byebug/processors/control_command_processor.rb', line 66 def context nil end |
#file ⇒ Object
70 71 72 |
# File 'lib/byebug/processors/control_command_processor.rb', line 70 def file errmsg 'No filename given.' end |
#proceed ⇒ Object
56 57 |
# File 'lib/byebug/processors/control_command_processor.rb', line 56 def proceed end |