Files
SpiderCut/lib/knife/base.lua
2021-12-18 20:10:30 +01:00

16 lines
420 B
Lua

return {
extend = function (self, subtype)
subtype = subtype or {}
local meta = { __index = subtype }
return setmetatable(subtype, {
__index = self,
__call = function (self, ...)
local instance = setmetatable({}, meta)
return instance, instance:constructor(...)
end
})
end,
constructor = function () end,
}