Class: Debugger::CommandProcessor::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:



149
150
151
152
153
154
# File 'lib/ruby-debug/processor.rb', line 149

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

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



145
146
147
# File 'lib/ruby-debug/processor.rb', line 145

def binding
  @binding
end

#commandsObject

Returns the value of attribute commands.



147
148
149
# File 'lib/ruby-debug/processor.rb', line 147

def commands
  @commands
end

#contextObject

Returns the value of attribute context.



145
146
147
# File 'lib/ruby-debug/processor.rb', line 145

def context
  @context
end

#displayObject

Returns the value of attribute display.



146
147
148
# File 'lib/ruby-debug/processor.rb', line 146

def display
  @display
end

#fileObject

Returns the value of attribute file.



145
146
147
# File 'lib/ruby-debug/processor.rb', line 145

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



146
147
148
# File 'lib/ruby-debug/processor.rb', line 146

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



147
148
149
# File 'lib/ruby-debug/processor.rb', line 147

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



145
146
147
# File 'lib/ruby-debug/processor.rb', line 145

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



146
147
148
# File 'lib/ruby-debug/processor.rb', line 146

def previous_line
  @previous_line
end

Instance Method Details

#confirm(*args) ⇒ Object



160
161
162
# File 'lib/ruby-debug/processor.rb', line 160

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


156
157
158
# File 'lib/ruby-debug/processor.rb', line 156

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

#proceedObject



168
169
170
# File 'lib/ruby-debug/processor.rb', line 168

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


164
165
166
# File 'lib/ruby-debug/processor.rb', line 164

def proceed?
  @proceed
end