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



314
315
316
317
# File 'lib/byebug/processor.rb', line 314

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



312
313
314
# File 'lib/byebug/processor.rb', line 312

def commands
  @commands
end

#interfaceObject (readonly)

Returns the value of attribute interface.



312
313
314
# File 'lib/byebug/processor.rb', line 312

def interface
  @interface
end

Instance Method Details

#confirm(*args) ⇒ Object



325
326
327
# File 'lib/byebug/processor.rb', line 325

def confirm(*args)
  'y'
end

#contextObject



329
330
331
# File 'lib/byebug/processor.rb', line 329

def context
  nil
end

#fileObject



333
334
335
336
# File 'lib/byebug/processor.rb', line 333

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

#proceedObject



319
320
# File 'lib/byebug/processor.rb', line 319

def proceed
end