class
Drigger::Command(T)
- Drigger::Command(T)
- Reference
- Object
Overview
A command-like abstraction for a Drigger::Module.
Only loads a module when it's ran.
Defined in:
drigger/command.crConstructors
Instance Method Summary
- #mod : Drigger::Module
- #name : String
-
#run(stack : Lua::Stack, ctx : Drigger::Context)
Runs the given command with given context.
Constructor Detail
Instance Method Detail
def run(stack : Lua::Stack, ctx : Drigger::Context)
#
Runs the given command with given context. The lua stack is passed down in case of any potential extra last-minute-changes in the stack. Because of that, the command can be extended without changing any other classes.