Class: Commands::Help

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

Overview

Help 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/help.rb', line 8

def self.command_name
  'help'
end

.functionObject



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

def self.function
  'Returns this usage information.'
end

Instance Method Details

#executeObject



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

def execute
  Commands.usage
end