Files
love-luigi/luigi/base.lua
nobody a5f1a9b1da minor
2016-02-08 13:47:20 -05:00

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,
}