Created
April 11, 2011 13:51
-
-
Save norman/913547 to your computer and use it in GitHub Desktop.
ridiculously simple object oriented Lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local class = {} | |
local methods = {} | |
function class.new() | |
local instance = {} | |
return setmetatable(instance, {__index = methods}) | |
end | |
return class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment