Class: Debugger::State

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-debug/processor.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ State

Returns a new instance of State.

Yields:

  • (_self)

Yield Parameters:



110
111
112
113
114
115
# File 'lib/ruby-debug/processor.rb', line 110

def initialize
  @frame_pos = 0
  @previous_line = nil
  @proceed = false
  yield self
end

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



106
107
108
# File 'lib/ruby-debug/processor.rb', line 106

def binding
  @binding
end

#contextObject

Returns the value of attribute context.



106
107
108
# File 'lib/ruby-debug/processor.rb', line 106

def context
  @context
end

#fileObject

Returns the value of attribute file.



106
107
108
# File 'lib/ruby-debug/processor.rb', line 106

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



107
108
109
# File 'lib/ruby-debug/processor.rb', line 107

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



108
109
110
# File 'lib/ruby-debug/processor.rb', line 108

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



106
107
108
# File 'lib/ruby-debug/processor.rb', line 106

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



107
108
109
# File 'lib/ruby-debug/processor.rb', line 107

def previous_line
  @previous_line
end

Instance Method Details



117
118
119
# File 'lib/ruby-debug/processor.rb', line 117

def print(*args)
  @interface.print(*args)
end

#proceedObject



125
126
127
# File 'lib/ruby-debug/processor.rb', line 125

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


121
122
123
# File 'lib/ruby-debug/processor.rb', line 121

def proceed?
  @proceed
end