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.



193
194
195
196
# File 'lib/ruby-debug/processor.rb', line 193

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



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

def commands
  @commands
end

Instance Method Details

#confirm(*args) ⇒ Object



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

def confirm(*args)
  'y'
end

#contextObject



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

def context
  nil
end

#fileObject



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

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


201
202
203
# File 'lib/ruby-debug/processor.rb', line 201

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

#proceedObject



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

def proceed
end