Skip to content

Instantly share code, notes, and snippets.

@whoo24
Created April 30, 2013 09:23
Show Gist options
  • Save whoo24/5487608 to your computer and use it in GitHub Desktop.
Save whoo24/5487608 to your computer and use it in GitHub Desktop.
Implement of class in Lua
classTemplate = {
new = function(self, func, o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o;
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment