class Drigger::Command(T)

Overview

A command-like abstraction for a Drigger::Module. Only loads a module when it's ran.

Defined in:

drigger/command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(mod : Drigger::Module) #

[View source]

Instance Method Detail

def mod : Drigger::Module #

[View source]
def name : String #

[View source]
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.


[View source]