1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-06-25 11:37:12 -07:00
mm/Lua/lib/lips/Base.lua
2016-04-21 13:04:49 -07:00

18 lines
494 B
Lua

-- mostly just semantics over knife.base
-- https://github.com/airstruck/knife/blob/master/knife/base.lua
return {
extend = function(self, subtype)
subtype = subtype or {}
local meta = { __index = subtype }
return setmetatable(subtype, {
__index = self,
__call = function(self, ...)
local obj = setmetatable({}, meta)
return obj, obj:init(...)
end
})
end,
init = function() end,
}