mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
initial commit
This commit is contained in:
12
luigi/base.lua
Normal file
12
luigi/base.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user