summaryrefslogtreecommitdiffstats
path: root/aconf/model/model.lua
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-04-02 16:34:13 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-04-03 00:45:53 +0300
commit3baaf91de453d35b095881478be8d88b3fc2b97a (patch)
treedbeeedc851f0d8130907574ef8506904c5c44570 /aconf/model/model.lua
parentc7bce46f22ff9c41e3598d42400368d3c733316c (diff)
downloadaconf-3baaf91de453d35b095881478be8d88b3fc2b97a.tar.bz2
aconf-3baaf91de453d35b095881478be8d88b3fc2b97a.tar.xz
initial developer documentation
descriptions for all functions and classes used by the openssh module
Diffstat (limited to 'aconf/model/model.lua')
-rw-r--r--aconf/model/model.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/aconf/model/model.lua b/aconf/model/model.lua
index a1780c9..3ffd4d3 100644
--- a/aconf/model/model.lua
+++ b/aconf/model/model.lua
@@ -3,6 +3,7 @@ Copyright (c) 2012-2015 Kaarle Ritvanen
See LICENSE file for license details
--]]
+--- @module aconf.model
local M = {}
local raise = require('aconf.error').raise
@@ -66,6 +67,13 @@ function M.Action:meta(context)
end
+--- create a new model. The model's fields can be defined after its
+-- creation by assigning it key&ndash;value pairs. The key will be the
+-- name of the field and the value will determine its type. The value
+-- shall be a subclass of @{Field}, an instance of such, or a subclass
+-- of Model.
+-- @tparam ?Model base base model inherited by the new model
+-- @treturn Model new model
function M.new(base)
if not base then base = M.Model end