Codebase list lua-ldoc / 20ddca9
added classes.lua to config.ld example in tests/ steve donovan 12 years ago
4 changed file(s) with 31 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
170170 end
171171 end
172172
173 -- if not t then break end -- no more file!
174
175173 if t == 'space' then t,v = tnext(tok) end
176174
177175 local item_follows, tags, is_local, case
0 ----------------------
1 -- a module containing some classes.
2 -- @module classes
3
4 local _M = {}
5
6 ---- a useful class.
7 -- @type Bonzo
8
9 _M.Bonzo = class()
10
11 --- a method.
12 -- function one
13 function Bonzo:one()
14
15 end
16
17 --- a metamethod
18 -- function __tostring
19 function Bonzo:__tostring()
20
21 end
22
23 return M
24
00 format='markdown'
1 file = 'types.lua'
1 file = {'types.lua','classes.lua'}
2 --file = 'classes.lua'
23 topics = {'one.md','two.md'}
34 tparam_alias 'string'
45 tparam_alias ('int','number')
2020 one = 1, -- alpha
2121 two = 2, -- beta
2222 }
23
24
25
26