24 lines
529 B
Lua
24 lines
529 B
Lua
---@diagnostic disable: undefined-field
|
|
---@meta
|
|
---@module 'classic'
|
|
|
|
---@class Object
|
|
local Object = {}
|
|
|
|
---Create a new instance of the class.
|
|
---@return self
|
|
function Object:new(...) end
|
|
|
|
---Call the super-class constructor.
|
|
---@param self Object
|
|
function Object.super.new(self, ...) end
|
|
|
|
---Create a subclass.
|
|
---@return Object # the new subclass (its metatable is set up)
|
|
function Object:extend() end
|
|
|
|
---Mix-in a table of methods into the class.
|
|
---@param mixin table
|
|
function Object:implement(mixin) end
|
|
|
|
return Object
|