37 lines
546 B
Lua
37 lines
546 B
Lua
-----
|
|
-- module containing a class
|
|
-- @module type
|
|
|
|
----
|
|
-- Our class.
|
|
-- @type Bonzo
|
|
|
|
----
|
|
-- make a new Bonzo.
|
|
-- @see Bonzo:dog
|
|
-- @string s name of Bonzo
|
|
function Bonzo.new(s)
|
|
end
|
|
|
|
-----
|
|
-- get a string representation.
|
|
-- works with `tostring`
|
|
function Bonzo:__tostring()
|
|
end
|
|
|
|
----
|
|
-- Another method.
|
|
function Bonzo:dog ()
|
|
|
|
end
|
|
|
|
----
|
|
-- A subtable with fields.
|
|
-- @table Details
|
|
-- @string[readonly] name
|
|
-- @int[readonly] age
|
|
|
|
---
|
|
-- This is a simple field/property of the class.
|
|
-- @string[opt="Bilbo",readonly] frodo direct access to text
|