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.



191
192
193
194
# File 'lib/ruby-debug/processor.rb', line 191

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



190
191
192
# File 'lib/ruby-debug/processor.rb', line 190

def commands
  @commands
end

Instance Method Details

#confirm(*args) ⇒ Object



203
204
205
# File 'lib/ruby-debug/processor.rb', line 203

def confirm(*args)
  'y'
end

#contextObject



207
208
209
# File 'lib/ruby-debug/processor.rb', line 207

def context
  nil
end

#fileObject



211
212
213
214
# File 'lib/ruby-debug/processor.rb', line 211

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


199
200
201
# File 'lib/ruby-debug/processor.rb', line 199

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

#proceedObject



196
197
# File 'lib/ruby-debug/processor.rb', line 196

def proceed
end