diff options
author | Ivo Danihelka <ivo@danihelka.net> | 2013-07-26 19:30:21 +0400 |
---|---|---|
committer | Ivo Danihelka <ivo@danihelka.net> | 2013-07-26 19:30:21 +0400 |
commit | 9c7e73273738ebb0df36eb0d4a84dfd9c4d010f9 (patch) | |
tree | 69aa301312fee0c39420a0f8f4ccd3f393cc4344 | |
parent | 507d096aa3b3e4d1d4401af1985a4c381f0014e6 (diff) |
Implemented custom gModule:type().
-rw-r--r-- | gmodule.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gmodule.lua b/gmodule.lua index 31b0857..4fa1f6f 100644 --- a/gmodule.lua +++ b/gmodule.lua @@ -98,6 +98,11 @@ function gModule:apply(func) end end +function gModule:type(type) + self:apply(function(module) module:type(type) end) + return self +end + function gModule:updateOutput(input) return self:runForwardFunction('updateOutput',input) end |