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