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:



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

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

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



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

def binding
  @binding
end

#commandsObject

Returns the value of attribute commands.



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

def commands
  @commands
end

#contextObject

Returns the value of attribute context.



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

def context
  @context
end

#displayObject

Returns the value of attribute display.



130
131
132
# File 'lib/ruby-debug/processor.rb', line 130

def display
  @display
end

#fileObject

Returns the value of attribute file.



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

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



130
131
132
# File 'lib/ruby-debug/processor.rb', line 130

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



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

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



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

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



130
131
132
# File 'lib/ruby-debug/processor.rb', line 130

def previous_line
  @previous_line
end

Instance Method Details

#confirm(*args) ⇒ Object



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

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


140
141
142
# File 'lib/ruby-debug/processor.rb', line 140

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

#proceedObject



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

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


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

def proceed?
  @proceed
end