Class: CmdBase
- Inherits:
-
Object
show all
- Defined in:
- lib/shell.rb
Overview
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
#aliases ⇒ Object
79
80
81
|
# File 'lib/shell.rb', line 79
def aliases
self.class::ALIASES
end
|
#arguments ⇒ Object
83
84
85
|
# File 'lib/shell.rb', line 83
def arguments
self.class::ARGUMENTS
end
|
#description ⇒ Object
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
|
#name ⇒ Object
75
76
77
|
# File 'lib/shell.rb', line 75
def name
self.class::NAME
end
|