Add example docs for LDoc

This commit is contained in:
Insality
2019-09-25 20:40:41 +03:00
parent 4d424a34c2
commit b72e7451e1
14 changed files with 92 additions and 35 deletions

View File

@@ -1,3 +1,6 @@
--- Component to handle GUI timers
-- @module base.timer
local data = require("druid.data")
local formats = require("druid.helper.formats")
local helper = require("druid.helper")
@@ -9,6 +12,7 @@ M.interest = {
local empty = function() end
function M.init(self, node, seconds_from, seconds_to, callback)
self.node = helper.get_node(node)
seconds_from = math.max(seconds_from, 0)