Class: Debugger::ControlState

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) ⇒ ControlState

Returns a new instance of ControlState.



130
131
132
133
# File 'lib/ruby-debug/processor.rb', line 130

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



129
130
131
# File 'lib/ruby-debug/processor.rb', line 129

def commands
  @commands
end

Instance Method Details

#confirm(*args) ⇒ Object



142
143
144
# File 'lib/ruby-debug/processor.rb', line 142

def confirm(*args)
    'y'
end

#contextObject



146
147
148
# File 'lib/ruby-debug/processor.rb', line 146

def context
  nil
end

#fileObject



150
151
152
153
# File 'lib/ruby-debug/processor.rb', line 150

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


138
139
140
# File 'lib/ruby-debug/processor.rb', line 138

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

#proceedObject



135
136
# File 'lib/ruby-debug/processor.rb', line 135

def proceed
end