Files
love-luigi/luigi/base.lua
2015-10-21 18:35:14 -04:00

13 lines
364 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,
}