Class: Builtins::Help
Constant Summary
collapse
- NAME_WIDTH =
35
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
13
14
15
|
# File 'lib/builtins/help.rb', line 13
def description
"displays available builtins, actions, and forwards"
end
|
Instance Method Details
#run ⇒ Object
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/builtins/help.rb', line 18
def run
Output.out("Builtins:")
Output.out(" #{builtins.join("\n ")}")
Output.out("")
Output.out("Forwards:")
Output.out(" #{forwards.join("\n ")}")
Output.out("")
Output.out("Actions:")
Output.out(" #{actions.join("\n ")}")
end
|