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:



362
363
364
365
366
367
368
# File 'lib/byebug/processor.rb', line 362

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

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



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

def binding
  @binding
end

#commandsObject

Returns the value of attribute commands.



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

def commands
  @commands
end

#contextObject

Returns the value of attribute context.



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

def context
  @context
end

#displayObject

Returns the value of attribute display.



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

def display
  @display
end

#fileObject

Returns the value of attribute file.



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

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



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

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



360
361
362
# File 'lib/byebug/processor.rb', line 360

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



360
361
362
# File 'lib/byebug/processor.rb', line 360

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



360
361
362
# File 'lib/byebug/processor.rb', line 360

def previous_line
  @previous_line
end

Instance Method Details

#proceedObject



377
378
379
# File 'lib/byebug/processor.rb', line 377

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


373
374
375
# File 'lib/byebug/processor.rb', line 373

def proceed?
  @proceed
end