Class: Debugger::CommandProcessor::State
- Inherits:
-
Object
- Object
- Debugger::CommandProcessor::State
- Defined in:
- lib/ruby-debug/processor.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#binding ⇒ Object
Returns the value of attribute binding.
-
#commands ⇒ Object
Returns the value of attribute commands.
-
#context ⇒ Object
Returns the value of attribute context.
-
#display ⇒ Object
Returns the value of attribute display.
-
#file ⇒ Object
Returns the value of attribute file.
-
#frame_pos ⇒ Object
Returns the value of attribute frame_pos.
-
#interface ⇒ Object
Returns the value of attribute interface.
-
#line ⇒ Object
Returns the value of attribute line.
-
#previous_line ⇒ Object
Returns the value of attribute previous_line.
Instance Method Summary collapse
- #confirm(*args) ⇒ Object
-
#errmsg(*args) ⇒ Object
FIXME: use delegate?.
-
#initialize {|_self| ... } ⇒ State
constructor
A new instance of State.
- #print(*args) ⇒ Object
- #proceed ⇒ Object
- #proceed? ⇒ Boolean
Constructor Details
#initialize {|_self| ... } ⇒ State
Returns a new instance of State.
361 362 363 364 365 366 367 |
# File 'lib/ruby-debug/processor.rb', line 361 def initialize super() @frame_pos = 0 @previous_line = nil @proceed = false yield self end |
Instance Attribute Details
#binding ⇒ Object
Returns the value of attribute binding.
357 358 359 |
# File 'lib/ruby-debug/processor.rb', line 357 def binding @binding end |
#commands ⇒ Object
Returns the value of attribute commands.
359 360 361 |
# File 'lib/ruby-debug/processor.rb', line 359 def commands @commands end |
#context ⇒ Object
Returns the value of attribute context.
357 358 359 |
# File 'lib/ruby-debug/processor.rb', line 357 def context @context end |
#display ⇒ Object
Returns the value of attribute display.
358 359 360 |
# File 'lib/ruby-debug/processor.rb', line 358 def display @display end |
#file ⇒ Object
Returns the value of attribute file.
357 358 359 |
# File 'lib/ruby-debug/processor.rb', line 357 def file @file end |
#frame_pos ⇒ Object
Returns the value of attribute frame_pos.
358 359 360 |
# File 'lib/ruby-debug/processor.rb', line 358 def frame_pos @frame_pos end |
#interface ⇒ Object
Returns the value of attribute interface.
359 360 361 |
# File 'lib/ruby-debug/processor.rb', line 359 def interface @interface end |
#line ⇒ Object
Returns the value of attribute line.
357 358 359 |
# File 'lib/ruby-debug/processor.rb', line 357 def line @line end |
#previous_line ⇒ Object
Returns the value of attribute previous_line.
358 359 360 |
# File 'lib/ruby-debug/processor.rb', line 358 def previous_line @previous_line end |
Instance Method Details
#confirm(*args) ⇒ Object
378 379 380 |
# File 'lib/ruby-debug/processor.rb', line 378 def confirm(*args) @interface.confirm(*args) end |
#errmsg(*args) ⇒ Object
FIXME: use delegate?
370 371 372 |
# File 'lib/ruby-debug/processor.rb', line 370 def errmsg(*args) @interface.errmsg(*args) end |
#print(*args) ⇒ Object
374 375 376 |
# File 'lib/ruby-debug/processor.rb', line 374 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
386 387 388 |
# File 'lib/ruby-debug/processor.rb', line 386 def proceed @proceed = true end |
#proceed? ⇒ Boolean
382 383 384 |
# File 'lib/ruby-debug/processor.rb', line 382 def proceed? @proceed end |