Class: Debugger::QuitCommand

### Home Classes Methods

### In Files

- lib/ruby-debug/commands/quit.rb

### Parent

Debugger::Command

### Methods

- ::help
- ::help_command
- #execute
- #regexp

### Class/Module Index

Quicksearch

- Debugger
- Debugger::AddBreakpoint
- Debugger::Breakpoint
- Debugger::Context
- Debugger::ContinueCommand
- Debugger::DeleteBreakpointCommand
- Debugger::FinishCommand
- Debugger::HelpCommand
- Debugger::IRBCommand
- Debugger::InfoCommand
- Debugger::JumpCommand
- Debugger::KillCommand
- Debugger::ListCommand
- Debugger::LocalInterface
- Debugger::LocalInterface::Debugger
- Debugger::MethodCommand
- Debugger::MethodSigCommand
- Debugger::NextCommand
- Debugger::ParseFunctions
- Debugger::Processor
- Debugger::QuitCommand
- Debugger::ReloadCommand
- Debugger::SetCommand
- Debugger::ShowCommand
- Debugger::SkipCommand
- Debugger::SourceCommand
- Debugger::StepCommand
- Debugger::VarClassVarCommand
- Debugger::VarInheritCommand
- Debugger::VarLocalCommand
- Debugger::WhereCommand
- Printers
- Printers::Base
- Printers::Base::MissedArgument
- Printers::Base::MissedPath
- Printers::Plain
- Mocha
- Mocha::Call
- Mocha::Expectation
- Mocha::Mock
- MiniTest
- MiniTest::Assertions
- MiniTest::Expectations
- TestDsl
- TestDsl::ClassMethods
- TestDsl::Shared
- Kernel
- Module
- PrinterHelpers
- TestInterface

No matching classes.

# Debugger::QuitCommand

Implements debugger "quit" command

### Public Class Methods

help(cmd) click to toggle source

    # File lib/ruby-debug/commands/quit.rb, line 27
    def help(cmd)
      %{
        q[uit] [!|unconditionally]\texit from debugger.
        exit[!]\talias to quit

        Normally we prompt before exiting. However if the parameter
        "unconditionally" or is given or suffixed with !, we stop
        without asking further questions.
       }
    end

help_command() click to toggle source

    # File lib/ruby-debug/commands/quit.rb, line 23
    def help_command
      ]quit exit]
    end

### Public Instance Methods

execute() click to toggle source

    # File lib/ruby-debug/commands/quit.rb, line 15
    def execute
      if @match[1] or confirm(pr("quit.confirmations.really"))
        @state.interface.finalize
        exit! # exit -> exit!: No graceful way to stop threads...
      end
    end

regexp() click to toggle source

    # File lib/ruby-debug/commands/quit.rb, line 7
    def regexp
      / ^\s*
         (?:q(?:uit)?|exit) \s*
         (!|\s+unconditionally)? \s*
         $
      /x
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.