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.



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

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



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

def commands
  @commands
end

#interfaceObject (readonly)

Returns the value of attribute interface.



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

def interface
  @interface
end

Instance Method Details

#confirm(*args) ⇒ Object



449
450
451
# File 'lib/byebug/processor.rb', line 449

def confirm(*args)
  'y'
end

#contextObject



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

def context
  nil
end

#fileObject



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

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

#proceedObject



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

def proceed
end