From 3baaf91de453d35b095881478be8d88b3fc2b97a Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 2 Apr 2015 16:34:13 +0300 Subject: initial developer documentation descriptions for all functions and classes used by the openssh module --- aconf/model/root.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'aconf/model/root.lua') diff --git a/aconf/model/root.lua b/aconf/model/root.lua index 3f95b0e..eef48ec 100644 --- a/aconf/model/root.lua +++ b/aconf/model/root.lua @@ -3,6 +3,7 @@ Copyright (c) 2012-2015 Kaarle Ritvanen See LICENSE file for license details --]] +--- @module aconf.model local M = {} local model = require('aconf.model.model') @@ -60,6 +61,13 @@ M.topology = setmetatable( } ) +--- inject a new field to the root model. +-- @tparam string name name of the field +-- @tparam Field|Model field type of the field, specified by a +-- subclass of @{Field} or an instance of such. Can also be specified +-- by a subclass of Model. +-- @tparam ?{[string]=any,...} params field parameters. Applicable +-- when field type is specified by a class (not an instance). function M.register(name, field, params) if not params then params = {} end params.create = true -- cgit v1.2.3