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:



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

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

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



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

def binding
  @binding
end

#commandsObject

Returns the value of attribute commands.



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

def commands
  @commands
end

#contextObject

Returns the value of attribute context.



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

def context
  @context
end

#displayObject

Returns the value of attribute display.



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

def display
  @display
end

#fileObject

Returns the value of attribute file.



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

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



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

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



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

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



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

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



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

def previous_line
  @previous_line
end

Instance Method Details

#confirm(*args) ⇒ Object



128
129
130
# File 'lib/ruby-debug/processor.rb', line 128

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


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

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

#proceedObject



136
137
138
# File 'lib/ruby-debug/processor.rb', line 136

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


132
133
134
# File 'lib/ruby-debug/processor.rb', line 132

def proceed?
  @proceed
end