aboutsummaryrefslogtreecommitdiff
path: root/date.lua
diff options
context:
space:
mode:
Diffstat (limited to 'date.lua')
-rw-r--r--date.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/date.lua b/date.lua
index e6ea108..dfdeaba 100644
--- a/date.lua
+++ b/date.lua
@@ -5,6 +5,7 @@
-- {{{ Grab environment
local os = { date = os.date }
+local setmetatable = setmetatable
-- }}}
@@ -22,3 +23,5 @@ function worker(format)
end
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })