class Drigger::LoadedModule

Overview

An loaded module that is provided by the Drigger::Module

Direct Known Subclasses

Defined in:

drigger/loaded_module.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(file_path : Path | String, contents : String, handler : Lua::Function) #

[View source]

Instance Method Detail

def call(context : Drigger::Context, *args) #

Calls the given lua handler with a context. Any given argument is expected to include ::LuaCallable. If it is not, an error will happen.


[View source]
def contents : String #

[View source]
def file_path : String | Path #

[View source]
def handler : Lua::Function #

[View source]