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