Class: Byebug::ControlState

Inherits:
State
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/byebug/states/control_state.rb

Overview

Controls state of Byebug’s REPL when in control mode

Instance Attribute Summary

Attributes inherited from State

#interface

Instance Method Summary collapse

Methods inherited from State

#initialize

Constructor Details

This class inherits a constructor from Byebug::State

Instance Method Details

#confirm(*_args) ⇒ Object



14
15
16
# File 'lib/byebug/states/control_state.rb', line 14

def confirm(*_args)
  'y'
end

#contextObject



18
19
20
# File 'lib/byebug/states/control_state.rb', line 18

def context
  nil
end

#fileObject



22
23
24
# File 'lib/byebug/states/control_state.rb', line 22

def file
  errmsg 'No filename given.'
end

#proceedObject



8
9
# File 'lib/byebug/states/control_state.rb', line 8

def proceed
end