Software /
code /
prosody
Comparison
util/array.lua @ 6777:5de6b93d0190
util.*: Remove use of module() function, make all module functions local and return them in a table at the end
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Feb 2015 10:36:37 +0100 |
parent | 6417:060b63a27e9b |
child | 7019:abcd5ec3ee41 |
comparison
equal
deleted
inserted
replaced
6774:3965662ae091 | 6777:5de6b93d0190 |
---|---|
167 array_methods[method] = function (self, ...) | 167 array_methods[method] = function (self, ...) |
168 return base_method(self, self, ...); | 168 return base_method(self, self, ...); |
169 end | 169 end |
170 end | 170 end |
171 | 171 |
172 _G.array = array; | |
173 module("array"); | |
174 | |
175 return array; | 172 return array; |