Class: Byebug::CommandProcessor::State

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/byebug/processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of State.

Yields:

  • (_self)

Yield Parameters:



347
348
349
350
351
352
353
# File 'lib/byebug/processor.rb', line 347

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

Instance Attribute Details

#commandsObject

Returns the value of attribute commands.



344
345
346
# File 'lib/byebug/processor.rb', line 344

def commands
  @commands
end

#contextObject

Returns the value of attribute context.



344
345
346
# File 'lib/byebug/processor.rb', line 344

def context
  @context
end

#displayObject

Returns the value of attribute display.



344
345
346
# File 'lib/byebug/processor.rb', line 344

def display
  @display
end

#fileObject

Returns the value of attribute file.



344
345
346
# File 'lib/byebug/processor.rb', line 344

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



345
346
347
# File 'lib/byebug/processor.rb', line 345

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



345
346
347
# File 'lib/byebug/processor.rb', line 345

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



345
346
347
# File 'lib/byebug/processor.rb', line 345

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



345
346
347
# File 'lib/byebug/processor.rb', line 345

def previous_line
  @previous_line
end

Instance Method Details

#proceedObject



362
363
364
# File 'lib/byebug/processor.rb', line 362

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


358
359
360
# File 'lib/byebug/processor.rb', line 358

def proceed?
  @proceed
end