diff options
Diffstat (limited to 'thermal.lua')
-rw-r--r-- | thermal.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/thermal.lua b/thermal.lua index 02b1f54..8d4057a 100644 --- a/thermal.lua +++ b/thermal.lua @@ -5,6 +5,7 @@ -- {{{ Grab environment local io = { open = io.open } +local setmetatable = setmetatable -- }}} @@ -25,3 +26,5 @@ function worker(format, thermal_zone) return {temperature} end -- }}} + +setmetatable(_M, { __call = function(_, ...) return worker(...) end }) |