Class: Builtins::Help

Inherits:
Builtin show all
Defined in:
lib/builtins/help.rb

Constant Summary collapse

NAME_WIDTH =
40

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

.descriptionObject


14
15
16
# File 'lib/builtins/help.rb', line 14

def description
	"displays available builtins, actions, and forwards"
end

Instance Method Details

#runObject


19
20
21
22
23
24
25
26
27
28
# File 'lib/builtins/help.rb', line 19

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