mirror of
https://github.com/airstruck/luigi.git
synced 2025-11-18 12:25:06 +00:00
14 lines
365 B
Lua
14 lines
365 B
Lua
return {
|
|
extend = function (self, subtype)
|
|
return setmetatable(subtype or {}, {
|
|
__index = self,
|
|
__call = function (self, ...)
|
|
local instance = setmetatable({}, { __index = self })
|
|
return instance, instance:constructor(...)
|
|
end
|
|
})
|
|
end,
|
|
constructor = function () end,
|
|
}
|
|
|