Class: Debugger::ControlCommandProcessor::State
- Inherits:
-
Object
- Object
- Debugger::ControlCommandProcessor::State
- 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) ⇒ State
constructor
A new instance of State.
- #print(*args) ⇒ Object
- #proceed ⇒ Object
Constructor Details
#initialize(interface, commands) ⇒ State
Returns a new instance of State.
207 208 209 210 |
# File 'lib/ruby-debug/processor.rb', line 207 def initialize(interface, commands) @interface = interface @commands = commands end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
206 207 208 |
# File 'lib/ruby-debug/processor.rb', line 206 def commands @commands end |
Instance Method Details
#confirm(*args) ⇒ Object
219 220 221 |
# File 'lib/ruby-debug/processor.rb', line 219 def confirm(*args) 'y' end |
#context ⇒ Object
223 224 225 |
# File 'lib/ruby-debug/processor.rb', line 223 def context nil end |
#file ⇒ Object
227 228 229 230 |
# File 'lib/ruby-debug/processor.rb', line 227 def file print "No filename given.\n" throw :debug_error end |
#print(*args) ⇒ Object
215 216 217 |
# File 'lib/ruby-debug/processor.rb', line 215 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
212 213 |
# File 'lib/ruby-debug/processor.rb', line 212 def proceed end |