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.
118 119 120 121 122 |
# File 'lib/ruby-debug/processor.rb', line 118 def initialize @frame_pos = 0 @previous_line = nil yield self end |
Instance Attribute Details
#binding ⇒ Object
Returns the value of attribute binding.
114 115 116 |
# File 'lib/ruby-debug/processor.rb', line 114 def binding @binding end |
#commands ⇒ Object
Returns the value of attribute commands.
116 117 118 |
# File 'lib/ruby-debug/processor.rb', line 116 def commands @commands end |
#context ⇒ Object
Returns the value of attribute context.
114 115 116 |
# File 'lib/ruby-debug/processor.rb', line 114 def context @context end |
#display ⇒ Object
Returns the value of attribute display.
115 116 117 |
# File 'lib/ruby-debug/processor.rb', line 115 def display @display end |
#file ⇒ Object
Returns the value of attribute file.
114 115 116 |
# File 'lib/ruby-debug/processor.rb', line 114 def file @file end |
#frame_pos ⇒ Object
Returns the value of attribute frame_pos.
115 116 117 |
# File 'lib/ruby-debug/processor.rb', line 115 def frame_pos @frame_pos end |
#interface ⇒ Object
Returns the value of attribute interface.
116 117 118 |
# File 'lib/ruby-debug/processor.rb', line 116 def interface @interface end |
#line ⇒ Object
Returns the value of attribute line.
114 115 116 |
# File 'lib/ruby-debug/processor.rb', line 114 def line @line end |
#previous_line ⇒ Object
Returns the value of attribute previous_line.
115 116 117 |
# File 'lib/ruby-debug/processor.rb', line 115 def previous_line @previous_line end |
Instance Method Details
#confirm(*args) ⇒ Object
128 129 130 |
# File 'lib/ruby-debug/processor.rb', line 128 def confirm(*args) @interface.confirm(*args) end |
#print(*args) ⇒ Object
124 125 126 |
# File 'lib/ruby-debug/processor.rb', line 124 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
136 137 138 |
# File 'lib/ruby-debug/processor.rb', line 136 def proceed @proceed = true end |
#proceed? ⇒ Boolean
132 133 134 |
# File 'lib/ruby-debug/processor.rb', line 132 def proceed? @proceed end |