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.



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

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



310
311
312
# File 'lib/byebug/processor.rb', line 310

def commands
  @commands
end

#interfaceObject (readonly)

Returns the value of attribute interface.



310
311
312
# File 'lib/byebug/processor.rb', line 310

def interface
  @interface
end

Instance Method Details

#confirm(*args) ⇒ Object



323
324
325
# File 'lib/byebug/processor.rb', line 323

def confirm(*args)
  'y'
end

#contextObject



327
328
329
# File 'lib/byebug/processor.rb', line 327

def context
  nil
end

#fileObject



331
332
333
334
# File 'lib/byebug/processor.rb', line 331

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

#proceedObject



317
318
# File 'lib/byebug/processor.rb', line 317

def proceed
end