Class: Debugger::State
- Inherits:
-
Object
- Object
- Debugger::State
- Defined in:
- lib/ruby-debug-ide/ide_processor.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#binding ⇒ Object
Returns the value of attribute binding.
-
#context ⇒ Object
Returns the value of attribute context.
-
#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
-
#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.
112 113 114 115 116 117 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 112 def initialize @frame_pos = 0 @previous_line = nil @proceed = false yield self end |
Instance Attribute Details
#binding ⇒ Object
Returns the value of attribute binding.
108 109 110 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 108 def binding @binding end |
#context ⇒ Object
Returns the value of attribute context.
108 109 110 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 108 def context @context end |
#file ⇒ Object
Returns the value of attribute file.
108 109 110 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 108 def file @file end |
#frame_pos ⇒ Object
Returns the value of attribute frame_pos.
109 110 111 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 109 def frame_pos @frame_pos end |
#interface ⇒ Object
Returns the value of attribute interface.
110 111 112 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 110 def interface @interface end |
#line ⇒ Object
Returns the value of attribute line.
108 109 110 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 108 def line @line end |
#previous_line ⇒ Object
Returns the value of attribute previous_line.
109 110 111 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 109 def previous_line @previous_line end |
Instance Method Details
#print(*args) ⇒ Object
119 120 121 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 119 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
127 128 129 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 127 def proceed @proceed = true end |
#proceed? ⇒ Boolean
123 124 125 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 123 def proceed? @proceed end |