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:



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

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

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



100
101
102
# File 'lib/ruby-debug/processor.rb', line 100

def binding
  @binding
end

#commandsObject

Returns the value of attribute commands.



102
103
104
# File 'lib/ruby-debug/processor.rb', line 102

def commands
  @commands
end

#contextObject

Returns the value of attribute context.



100
101
102
# File 'lib/ruby-debug/processor.rb', line 100

def context
  @context
end

#displayObject

Returns the value of attribute display.



101
102
103
# File 'lib/ruby-debug/processor.rb', line 101

def display
  @display
end

#fileObject

Returns the value of attribute file.



100
101
102
# File 'lib/ruby-debug/processor.rb', line 100

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



101
102
103
# File 'lib/ruby-debug/processor.rb', line 101

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



102
103
104
# File 'lib/ruby-debug/processor.rb', line 102

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



100
101
102
# File 'lib/ruby-debug/processor.rb', line 100

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



101
102
103
# File 'lib/ruby-debug/processor.rb', line 101

def previous_line
  @previous_line
end

Instance Method Details

#confirm(*args) ⇒ Object



115
116
117
# File 'lib/ruby-debug/processor.rb', line 115

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


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

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

#proceedObject



123
124
125
# File 'lib/ruby-debug/processor.rb', line 123

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


119
120
121
# File 'lib/ruby-debug/processor.rb', line 119

def proceed?
  @proceed
end