Class: Debugger::State
- Inherits:
-
Object
- Object
- Debugger::State
- Defined in:
- lib/ruby-debug/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.
102 103 104 105 106 107 |
# File 'lib/ruby-debug/processor.rb', line 102 def initialize @frame_pos = 0 @previous_line = nil @proceed = false yield self end |
Instance Attribute Details
#binding ⇒ Object
Returns the value of attribute binding.
98 99 100 |
# File 'lib/ruby-debug/processor.rb', line 98 def binding @binding end |
#context ⇒ Object
Returns the value of attribute context.
98 99 100 |
# File 'lib/ruby-debug/processor.rb', line 98 def context @context end |
#file ⇒ Object
Returns the value of attribute file.
98 99 100 |
# File 'lib/ruby-debug/processor.rb', line 98 def file @file end |
#frame_pos ⇒ Object
Returns the value of attribute frame_pos.
99 100 101 |
# File 'lib/ruby-debug/processor.rb', line 99 def frame_pos @frame_pos end |
#interface ⇒ Object
Returns the value of attribute interface.
100 101 102 |
# File 'lib/ruby-debug/processor.rb', line 100 def interface @interface end |
#line ⇒ Object
Returns the value of attribute line.
98 99 100 |
# File 'lib/ruby-debug/processor.rb', line 98 def line @line end |
#previous_line ⇒ Object
Returns the value of attribute previous_line.
99 100 101 |
# File 'lib/ruby-debug/processor.rb', line 99 def previous_line @previous_line end |
Instance Method Details
#print(*args) ⇒ Object
109 110 111 |
# File 'lib/ruby-debug/processor.rb', line 109 def print(*args) @interface.print(*args) end |
#proceed ⇒ Object
117 118 119 |
# File 'lib/ruby-debug/processor.rb', line 117 def proceed @proceed = true end |
#proceed? ⇒ Boolean
113 114 115 |
# File 'lib/ruby-debug/processor.rb', line 113 def proceed? @proceed end |