Skip to content

Instantly share code, notes, and snippets.

@jeiting
Created April 18, 2013 20:49
Show Gist options
  • Save jeiting/5416105 to your computer and use it in GitHub Desktop.
Save jeiting/5416105 to your computer and use it in GitHub Desktop.
Mixin = {}
function Mixin.extend(obj, table)
local super = {}
for funcName, func in pairs(functionsTable) do
if object[funcName] then
super[funcName] = object[funcName]
object.super = super
end
object[funcName] = func
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment