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.
175 176 177 178 |
# File 'lib/ruby-debug/processor.rb', line 175 def initialize(interface, commands) @interface = interface @commands = commands end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
174 175 176 |
# File 'lib/ruby-debug/processor.rb', line 174 def commands @commands end |
Instance Method Details
#confirm(*args) ⇒ Object
187 188 189 |
# File 'lib/ruby-debug/processor.rb', line 187 def confirm(*args) 'y' end |
#context ⇒ Object
191 192 193 |
# File 'lib/ruby-debug/processor.rb', line 191 def context nil end |
#file ⇒ Object
195 196 197 198 |
# File 'lib/ruby-debug/processor.rb', line 195 def file print "No filename given.\n" throw :debug_error end |
#print(*args) ⇒ Object
183 184 185 |
# File 'lib/ruby-debug/processor.rb', line 183 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
180 181 |
# File 'lib/ruby-debug/processor.rb', line 180 def proceed end |