summaryrefslogtreecommitdiff
path: root/class/class.lua
blob: 6cff4d722e3d5136af614c1e54431045cc7c440b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local class = {} 

class.new = function(self, ...) 
	local c = {} 
	setmetatable(c, self) 
	self.__index = self 
	if self.init then 
		self.init(...)
	end 
	return c 
end 

class.static = {} 

return class