From 4321271853b484150d37b9908fdab46fde0ad8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 20 Nov 2018 12:13:59 +0800 Subject: =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=B8=8D=E5=BA=94=E8=AF=A5=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/method/exit.lua | 3 +++ src/method/init.lua | 1 + 2 files changed, 4 insertions(+) create mode 100644 src/method/exit.lua (limited to 'src/method') diff --git a/src/method/exit.lua b/src/method/exit.lua new file mode 100644 index 00000000..716a86e7 --- /dev/null +++ b/src/method/exit.lua @@ -0,0 +1,3 @@ +return function () + return true +end diff --git a/src/method/init.lua b/src/method/init.lua index 46b79cc4..a99c3ed5 100644 --- a/src/method/init.lua +++ b/src/method/init.lua @@ -4,6 +4,7 @@ local function init(name) method[name] = require('method.' .. name:gsub('/', '.')) end +init 'exit' init 'initialize' init 'initialized' init 'shutdown' -- cgit v1.2.3