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.



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

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



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

def commands
  @commands
end

Instance Method Details

#confirm(*args) ⇒ Object



219
220
221
# File 'lib/ruby-debug/processor.rb', line 219

def confirm(*args)
  'y'
end

#contextObject



223
224
225
# File 'lib/ruby-debug/processor.rb', line 223

def context
  nil
end

#fileObject



227
228
229
230
# File 'lib/ruby-debug/processor.rb', line 227

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


215
216
217
# File 'lib/ruby-debug/processor.rb', line 215

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

#proceedObject



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

def proceed
end