Class: Debugger::StartCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby-debug/commands/control.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Command

Command::DEF_OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

commands, inherited, #initialize, load_commands, #match, method_missing, options

Constructor Details

This class inherits a constructor from Debugger::Command

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Debugger::Command

Class Method Details

.help(cmd) ⇒ Object



90
91
92
93
94
# File 'lib/ruby-debug/commands/control.rb', line 90

def help(cmd)
  %{
    run prog script
  }
end

.help_commandObject



86
87
88
# File 'lib/ruby-debug/commands/control.rb', line 86

def help_command
  'start'
end

Instance Method Details

#executeObject



80
81
82
83
# File 'lib/ruby-debug/commands/control.rb', line 80

def execute
  @printer.print_debug("Starting: running program script")
  Debugger.run_prog_script #Debugger.prog_script_running?
end

#regexpObject



76
77
78
# File 'lib/ruby-debug/commands/control.rb', line 76

def regexp
  /^\s*(start)(\s+ \S+ .*)?$/x
end