Class: Builtins::Help
Constant Summary
collapse
- NAME_WIDTH =
40
Constants inherited
from Builtin
Builtin::BUILTIN_DIR
Instance Attribute Summary
Attributes inherited from Builtin
#args, #config
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Builtin
class_for, #initialize
Constructor Details
This class inherits a constructor from Builtin
Class Method Details
.description ⇒ Object
10
11
12
|
# File 'lib/builtins/help.rb', line 10
def description
"displays available builtins, actions, and forwards"
end
|
Instance Method Details
#run ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/builtins/help.rb', line 15
def run
list("Builtins", builtins) if builtins.any?
list("Forwards", forwards) if forwards.any?
list("Actions", actions) if actions.any?
true
end
|