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
-
#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.
133 134 135 136 137 138 |
# File 'lib/ruby-debug/processor.rb', line 133 def initialize @frame_pos = 0 @previous_line = nil @proceed = false yield self end |
Instance Attribute Details
#binding ⇒ Object
Returns the value of attribute binding.
129 130 131 |
# File 'lib/ruby-debug/processor.rb', line 129 def binding @binding end |
#commands ⇒ Object
Returns the value of attribute commands.
131 132 133 |
# File 'lib/ruby-debug/processor.rb', line 131 def commands @commands end |
#context ⇒ Object
Returns the value of attribute context.
129 130 131 |
# File 'lib/ruby-debug/processor.rb', line 129 def context @context end |
#display ⇒ Object
Returns the value of attribute display.
130 131 132 |
# File 'lib/ruby-debug/processor.rb', line 130 def display @display end |
#file ⇒ Object
Returns the value of attribute file.
129 130 131 |
# File 'lib/ruby-debug/processor.rb', line 129 def file @file end |
#frame_pos ⇒ Object
Returns the value of attribute frame_pos.
130 131 132 |
# File 'lib/ruby-debug/processor.rb', line 130 def frame_pos @frame_pos end |
#interface ⇒ Object
Returns the value of attribute interface.
131 132 133 |
# File 'lib/ruby-debug/processor.rb', line 131 def interface @interface end |
#line ⇒ Object
Returns the value of attribute line.
129 130 131 |
# File 'lib/ruby-debug/processor.rb', line 129 def line @line end |
#previous_line ⇒ Object
Returns the value of attribute previous_line.
130 131 132 |
# File 'lib/ruby-debug/processor.rb', line 130 def previous_line @previous_line end |
Instance Method Details
#confirm(*args) ⇒ Object
144 145 146 |
# File 'lib/ruby-debug/processor.rb', line 144 def confirm(*args) @interface.confirm(*args) end |
#print(*args) ⇒ Object
140 141 142 |
# File 'lib/ruby-debug/processor.rb', line 140 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
152 153 154 |
# File 'lib/ruby-debug/processor.rb', line 152 def proceed @proceed = true end |
#proceed? ⇒ Boolean
148 149 150 |
# File 'lib/ruby-debug/processor.rb', line 148 def proceed? @proceed end |