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.
193 194 195 196 |
# File 'lib/ruby-debug/processor.rb', line 193 def initialize(interface, commands) @interface = interface @commands = commands end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
192 193 194 |
# File 'lib/ruby-debug/processor.rb', line 192 def commands @commands end |
Instance Method Details
#confirm(*args) ⇒ Object
205 206 207 |
# File 'lib/ruby-debug/processor.rb', line 205 def confirm(*args) 'y' end |
#context ⇒ Object
209 210 211 |
# File 'lib/ruby-debug/processor.rb', line 209 def context nil end |
#file ⇒ Object
213 214 215 216 |
# File 'lib/ruby-debug/processor.rb', line 213 def file print "No filename given.\n" throw :debug_error end |
#print(*args) ⇒ Object
201 202 203 |
# File 'lib/ruby-debug/processor.rb', line 201 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
198 199 |
# File 'lib/ruby-debug/processor.rb', line 198 def proceed end |