Class: Debugger::StartCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/ruby-debug/commands/start.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, #find, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map

Constructor Details

This class inherits a constructor from Debugger::Command

Class Method Details

.help(cmd) ⇒ Object



19
20
21
22
23
# File 'lib/ruby-debug/commands/start.rb', line 19

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

.help_commandObject



15
16
17
# File 'lib/ruby-debug/commands/start.rb', line 15

def help_command
  'start'
end

Instance Method Details

#executeObject



9
10
11
12
# File 'lib/ruby-debug/commands/start.rb', line 9

def execute
  #print_debug "Starting: running program script"
  Debugger.proceed
end

#regexpObject



5
6
7
# File 'lib/ruby-debug/commands/start.rb', line 5

def regexp
  /^\s*(start)\s*$/ix
end