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.
-
#original_context ⇒ Object
Returns the value of attribute original_context.
-
#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
- #restore_context ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ State
Returns a new instance of State.
108 109 110 111 112 113 114 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 108 def initialize @frame_pos = 0 @previous_line = nil @proceed = false yield self @original_context = context end |
Instance Attribute Details
#binding ⇒ Object
Returns the value of attribute binding.
104 105 106 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 104 def binding @binding end |
#context ⇒ Object
Returns the value of attribute context.
103 104 105 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 103 def context @context end |
#file ⇒ Object
Returns the value of attribute file.
104 105 106 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 104 def file @file end |
#frame_pos ⇒ Object
Returns the value of attribute frame_pos.
105 106 107 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 105 def frame_pos @frame_pos end |
#interface ⇒ Object
Returns the value of attribute interface.
106 107 108 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 106 def interface @interface end |
#line ⇒ Object
Returns the value of attribute line.
104 105 106 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 104 def line @line end |
#original_context ⇒ Object
Returns the value of attribute original_context.
103 104 105 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 103 def original_context @original_context end |
#previous_line ⇒ Object
Returns the value of attribute previous_line.
105 106 107 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 105 def previous_line @previous_line end |
Instance Method Details
#print(*args) ⇒ Object
116 117 118 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 116 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
124 125 126 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 124 def proceed @proceed = true end |
#proceed? ⇒ Boolean
120 121 122 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 120 def proceed? @proceed end |
#restore_context ⇒ Object
128 129 130 |
# File 'lib/ruby-debug-ide/ide_processor.rb', line 128 def restore_context @context = @original_context end |