core.moduleapi
core.moduleapi
is where all the methods of the module
object available to plugins are implemented.
If imported, returns a table with all the methods of the Module API.
local api = require "core.moduleapi";
local module = setmetatable({ name = "foobar", },
{ __index = api });
print(module:get_name()) --> prints foobar