Class: CmdBase

Inherits:
Object
  • Object
show all
Defined in:
lib/shell.rb

Overview

Base command

Direct Known Subclasses

CmdExecute, CmdHelp, CmdList, CmdNext, CmdQuit, CmdSave

Constant Summary collapse

NAME =
nil
ALIASES =
nil
ARGUMENTS =
nil
DESCRIPTION =
nil

Instance Method Summary collapse

Constructor Details

#initialize(shell) ⇒ CmdBase

Returns a new instance of CmdBase.



69
70
71
# File 'lib/shell.rb', line 69

def initialize(shell)
  @shell = shell
end

Instance Method Details

#aliasesObject



79
80
81
# File 'lib/shell.rb', line 79

def aliases
  self.class::ALIASES
end

#argumentsObject



83
84
85
# File 'lib/shell.rb', line 83

def arguments
  self.class::ARGUMENTS
end

#descriptionObject



87
88
89
# File 'lib/shell.rb', line 87

def description
  self.class::DESCRIPTION
end

#exec(args) ⇒ Object



73
# File 'lib/shell.rb', line 73

def exec(args); end

#nameObject



75
76
77
# File 'lib/shell.rb', line 75

def name
  self.class::NAME
end