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(commands, context, display, file, interface, line) ⇒ State

Returns a new instance of State.



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

def initialize(commands, context, display, file, interface, line)
  @commands, @context, @display = commands, context, display
  @file, @interface, @line = file, interface, line
  @frame_pos, @previous_line, @proceed = 0, nil, false
end

Instance Attribute Details

#commandsObject

Returns the value of attribute commands.



340
341
342
# File 'lib/byebug/processor.rb', line 340

def commands
  @commands
end

#contextObject

Returns the value of attribute context.



340
341
342
# File 'lib/byebug/processor.rb', line 340

def context
  @context
end

#displayObject

Returns the value of attribute display.



340
341
342
# File 'lib/byebug/processor.rb', line 340

def display
  @display
end

#fileObject

Returns the value of attribute file.



340
341
342
# File 'lib/byebug/processor.rb', line 340

def file
  @file
end

#frame_posObject

Returns the value of attribute frame_pos.



340
341
342
# File 'lib/byebug/processor.rb', line 340

def frame_pos
  @frame_pos
end

#interfaceObject

Returns the value of attribute interface.



341
342
343
# File 'lib/byebug/processor.rb', line 341

def interface
  @interface
end

#lineObject

Returns the value of attribute line.



341
342
343
# File 'lib/byebug/processor.rb', line 341

def line
  @line
end

#previous_lineObject

Returns the value of attribute previous_line.



341
342
343
# File 'lib/byebug/processor.rb', line 341

def previous_line
  @previous_line
end

Instance Method Details

#proceedObject



356
357
358
# File 'lib/byebug/processor.rb', line 356

def proceed
  @proceed = true
end

#proceed?Boolean

Returns:

  • (Boolean)


352
353
354
# File 'lib/byebug/processor.rb', line 352

def proceed?
  @proceed
end