Class: Byebug::ControlCommandProcessor::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(interface, commands) ⇒ State

Returns a new instance of State.



417
418
419
420
# File 'lib/byebug/processor.rb', line 417

def initialize(interface, commands)
  @interface = interface
  @commands = commands
end

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



415
416
417
# File 'lib/byebug/processor.rb', line 415

def commands
  @commands
end

#interfaceObject (readonly)

Returns the value of attribute interface.



415
416
417
# File 'lib/byebug/processor.rb', line 415

def interface
  @interface
end

Instance Method Details

#confirm(*args) ⇒ Object



428
429
430
# File 'lib/byebug/processor.rb', line 428

def confirm(*args)
  'y'
end

#contextObject



432
433
434
# File 'lib/byebug/processor.rb', line 432

def context
  nil
end

#fileObject



436
437
438
439
# File 'lib/byebug/processor.rb', line 436

def file
  errmsg "No filename given.\n"
  throw :debug_error
end

#proceedObject



422
423
# File 'lib/byebug/processor.rb', line 422

def proceed
end