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.
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
Instance Method Summary collapse
- #confirm(*args) ⇒ Object
- #context ⇒ Object
- #errmsg(*args) ⇒ 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.
444 445 446 447 |
# File 'lib/ruby-debug/processor.rb', line 444 def initialize(interface, commands) @interface = interface @commands = commands end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
442 443 444 |
# File 'lib/ruby-debug/processor.rb', line 442 def commands @commands end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
442 443 444 |
# File 'lib/ruby-debug/processor.rb', line 442 def interface @interface end |
Instance Method Details
#confirm(*args) ⇒ Object
460 461 462 |
# File 'lib/ruby-debug/processor.rb', line 460 def confirm(*args) 'y' end |
#context ⇒ Object
464 465 466 |
# File 'lib/ruby-debug/processor.rb', line 464 def context nil end |
#errmsg(*args) ⇒ Object
452 453 454 |
# File 'lib/ruby-debug/processor.rb', line 452 def errmsg(*args) @interface.print(*args) end |
#file ⇒ Object
468 469 470 471 |
# File 'lib/ruby-debug/processor.rb', line 468 def file errmsg "No filename given.\n" throw :debug_error end |
#print(*args) ⇒ Object
456 457 458 |
# File 'lib/ruby-debug/processor.rb', line 456 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
449 450 |
# File 'lib/ruby-debug/processor.rb', line 449 def proceed end |