summaryrefslogtreecommitdiff
path: root/class/class.lua
blob: bf3e6163279a2133fa48bf2e82d24d4ff4ddb3dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local class = {} 
class.new = function(self, ...) 
	local c = {} 
    self.__index = self
	setmetatable(c, self) 
	if self.init then 
		self.init(...)
	end 
	return c 
end 

class.static = {} 

return class