diff --git a/class.lua b/class.lua index b3f55a4..c36a22e 100644 --- a/class.lua +++ b/class.lua @@ -1,5 +1,5 @@ local Class -Class = function(name, parent) +Class = function(name) local newClass, base base = { __index = base, @@ -16,5 +16,6 @@ Class = function(name, parent) return self end }) + return newClass end return Class