Class: Commands::Quit

Inherits:
Command show all
Defined in:
lib/gdsh/quit.rb

Overview

Quit command.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#initialize

Methods included from DriveError

#drive_error_string

Methods included from CommandMixin

included

Constructor Details

This class inherits a constructor from Commands::Command

Class Method Details

.command_nameObject



8
9
10
# File 'lib/gdsh/quit.rb', line 8

def self.command_name
  'quit'
end

.functionObject



12
13
14
# File 'lib/gdsh/quit.rb', line 12

def self.function
  'Exit the application.'
end

.terminal?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/gdsh/quit.rb', line 16

def self.terminal?
  true
end

Instance Method Details

#executeObject



20
21
# File 'lib/gdsh/quit.rb', line 20

def execute
end