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.



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

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



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

def commands
  @commands
end

#interfaceObject (readonly)

Returns the value of attribute interface.



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

def interface
  @interface
end

Instance Method Details

#confirm(*args) ⇒ Object



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

def confirm(*args)
  'y'
end

#contextObject



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

def context
  nil
end

#fileObject



337
338
339
340
# File 'lib/byebug/processor.rb', line 337

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

#proceedObject



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

def proceed
end