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.



175
176
177
178
# File 'lib/ruby-debug/processor.rb', line 175

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



174
175
176
# File 'lib/ruby-debug/processor.rb', line 174

def commands
  @commands
end

Instance Method Details

#confirm(*args) ⇒ Object



187
188
189
# File 'lib/ruby-debug/processor.rb', line 187

def confirm(*args)
  'y'
end

#contextObject



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

def context
  nil
end

#fileObject



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

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


183
184
185
# File 'lib/ruby-debug/processor.rb', line 183

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

#proceedObject



180
181
# File 'lib/ruby-debug/processor.rb', line 180

def proceed
end