2012-03-06 09:41:19 +01:00
|
|
|
----------------------
|
|
|
|
-- a module containing some classes.
|
|
|
|
-- @module classes
|
|
|
|
|
|
|
|
local _M = {}
|
|
|
|
|
|
|
|
---- a useful class.
|
|
|
|
-- @type Bonzo
|
|
|
|
|
|
|
|
_M.Bonzo = class()
|
|
|
|
|
|
|
|
--- a method.
|
2016-06-20 19:32:46 +02:00
|
|
|
-- function one; reference to @{one.md.classes|documentation}
|
2012-03-06 09:41:19 +01:00
|
|
|
function Bonzo:one()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
--- a metamethod
|
|
|
|
-- function __tostring
|
|
|
|
function Bonzo:__tostring()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|
|
|
|
|