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.
149 150 151 152 153 154 |
# File 'lib/ruby-debug/processor.rb', line 149 def initialize @frame_pos = 0 @previous_line = nil @proceed = false yield self end |
Instance Attribute Details
#binding ⇒ Object
Returns the value of attribute binding.
145 146 147 |
# File 'lib/ruby-debug/processor.rb', line 145 def binding @binding end |
#commands ⇒ Object
Returns the value of attribute commands.
147 148 149 |
# File 'lib/ruby-debug/processor.rb', line 147 def commands @commands end |
#context ⇒ Object
Returns the value of attribute context.
145 146 147 |
# File 'lib/ruby-debug/processor.rb', line 145 def context @context end |
#display ⇒ Object
Returns the value of attribute display.
146 147 148 |
# File 'lib/ruby-debug/processor.rb', line 146 def display @display end |
#file ⇒ Object
Returns the value of attribute file.
145 146 147 |
# File 'lib/ruby-debug/processor.rb', line 145 def file @file end |
#frame_pos ⇒ Object
Returns the value of attribute frame_pos.
146 147 148 |
# File 'lib/ruby-debug/processor.rb', line 146 def frame_pos @frame_pos end |
#interface ⇒ Object
Returns the value of attribute interface.
147 148 149 |
# File 'lib/ruby-debug/processor.rb', line 147 def interface @interface end |
#line ⇒ Object
Returns the value of attribute line.
145 146 147 |
# File 'lib/ruby-debug/processor.rb', line 145 def line @line end |
#previous_line ⇒ Object
Returns the value of attribute previous_line.
146 147 148 |
# File 'lib/ruby-debug/processor.rb', line 146 def previous_line @previous_line end |
Instance Method Details
#confirm(*args) ⇒ Object
160 161 162 |
# File 'lib/ruby-debug/processor.rb', line 160 def confirm(*args) @interface.confirm(*args) end |
#print(*args) ⇒ Object
156 157 158 |
# File 'lib/ruby-debug/processor.rb', line 156 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
168 169 170 |
# File 'lib/ruby-debug/processor.rb', line 168 def proceed @proceed = true end |
#proceed? ⇒ Boolean
164 165 166 |
# File 'lib/ruby-debug/processor.rb', line 164 def proceed? @proceed end |