Class: Byebug::ControlCommandProcessor::State

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/byebug/processors/control_command_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interface, commands) ⇒ State

Returns a new instance of State.



51
52
53
54
# File 'lib/byebug/processors/control_command_processor.rb', line 51

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



49
50
51
# File 'lib/byebug/processors/control_command_processor.rb', line 49

def commands
  @commands
end

#interfaceObject (readonly)

Returns the value of attribute interface.



49
50
51
# File 'lib/byebug/processors/control_command_processor.rb', line 49

def interface
  @interface
end

Instance Method Details

#confirm(*_args) ⇒ Object



62
63
64
# File 'lib/byebug/processors/control_command_processor.rb', line 62

def confirm(*_args)
  'y'
end

#contextObject



66
67
68
# File 'lib/byebug/processors/control_command_processor.rb', line 66

def context
  nil
end

#fileObject



70
71
72
# File 'lib/byebug/processors/control_command_processor.rb', line 70

def file
  errmsg 'No filename given.'
end

#proceedObject



56
57
# File 'lib/byebug/processors/control_command_processor.rb', line 56

def proceed
end