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.



441
442
443
444
# File 'lib/byebug/processor.rb', line 441

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



439
440
441
# File 'lib/byebug/processor.rb', line 439

def commands
  @commands
end

#interfaceObject (readonly)

Returns the value of attribute interface.



439
440
441
# File 'lib/byebug/processor.rb', line 439

def interface
  @interface
end

Instance Method Details

#confirm(*args) ⇒ Object



452
453
454
# File 'lib/byebug/processor.rb', line 452

def confirm(*args)
  'y'
end

#contextObject



456
457
458
# File 'lib/byebug/processor.rb', line 456

def context
  nil
end

#fileObject



460
461
462
463
# File 'lib/byebug/processor.rb', line 460

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

#proceedObject



446
447
# File 'lib/byebug/processor.rb', line 446

def proceed
end