Class: Debugger::ControlState
- Inherits:
-
Object
- Object
- Debugger::ControlState
- Defined in:
- lib/ruby-debug/processor.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
Instance Method Summary collapse
- #confirm(*args) ⇒ Object
- #context ⇒ Object
- #file ⇒ Object
-
#initialize(interface, commands) ⇒ ControlState
constructor
A new instance of ControlState.
- #print(*args) ⇒ Object
- #proceed ⇒ Object
Constructor Details
#initialize(interface, commands) ⇒ ControlState
Returns a new instance of ControlState.
130 131 132 133 |
# File 'lib/ruby-debug/processor.rb', line 130 def initialize(interface, commands) @interface = interface @commands = commands end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
129 130 131 |
# File 'lib/ruby-debug/processor.rb', line 129 def commands @commands end |
Instance Method Details
#confirm(*args) ⇒ Object
142 143 144 |
# File 'lib/ruby-debug/processor.rb', line 142 def confirm(*args) 'y' end |
#context ⇒ Object
146 147 148 |
# File 'lib/ruby-debug/processor.rb', line 146 def context nil end |
#file ⇒ Object
150 151 152 153 |
# File 'lib/ruby-debug/processor.rb', line 150 def file print "ERROR: No filename given.\n" throw :debug_error end |
#print(*args) ⇒ Object
138 139 140 |
# File 'lib/ruby-debug/processor.rb', line 138 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
135 136 |
# File 'lib/ruby-debug/processor.rb', line 135 def proceed end |