Parent

Debugger::Xml::Ide::ControlCommandProcessor

Public Class Methods

new(interface) click to toggle source
# File lib/debugger/xml/ide/control_command_processor.rb, line 7
def initialize(interface)
  @interface = interface
end

Public Instance Methods

process_command(cmd) click to toggle source
# File lib/debugger/xml/ide/control_command_processor.rb, line 23
def process_command(cmd)
  catch(:debug_error) do
    if matched_cmd = control_commands.find { |c| c.match(cmd) }
      matched_cmd.execute
    else
      process_context_commands(cmd)
    end
  end
end
process_commands() click to toggle source
# File lib/debugger/xml/ide/control_command_processor.rb, line 11
def process_commands
  while input = @interface.read_command
    process_input(input)
  end
rescue IOError, Errno::EPIPE
rescue Exception
  print "INTERNAL ERROR!!! #{$!}\n" rescue nil
  print $!.backtrace.map{|l| "\t#{l}"}.join("\n") rescue nil
ensure
  @interface.close
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.