Class: Debugger::ControlCommandProcessor::State

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-debug/processor.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interface, commands) ⇒ State

Returns a new instance of State.



452
453
454
455
# File 'lib/ruby-debug/processor.rb', line 452

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



450
451
452
# File 'lib/ruby-debug/processor.rb', line 450

def commands
  @commands
end

#interfaceObject (readonly)

Returns the value of attribute interface.



450
451
452
# File 'lib/ruby-debug/processor.rb', line 450

def interface
  @interface
end

Instance Method Details

#confirm(*args) ⇒ Object



468
469
470
# File 'lib/ruby-debug/processor.rb', line 468

def confirm(*args)
  'y'
end

#contextObject



472
473
474
# File 'lib/ruby-debug/processor.rb', line 472

def context
  nil
end

#errmsg(*args) ⇒ Object



460
461
462
# File 'lib/ruby-debug/processor.rb', line 460

def errmsg(*args)
  @interface.print(*args)
end

#fileObject



476
477
478
479
# File 'lib/ruby-debug/processor.rb', line 476

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


464
465
466
# File 'lib/ruby-debug/processor.rb', line 464

def print(*args)
  @interface.print(*args)
end

#proceedObject



457
458
# File 'lib/ruby-debug/processor.rb', line 457

def proceed
end