A metatable can be defined like
local t = setmetatable({}, {
__tostring = function() return 'custom tostring behavior!' end
})
Here are the metamethods that you can define, and their behavior
... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.
due to html failing to want to format, i've migrated this writeup to a gist. also, since by having your extension on the chrome web store you're basically open-source, the files referred to are ATTACHED to this gist. ha!
a small writeup on the reverse-engineering of dyknow (school-wide chrome extension
i felt like doing a little analysis on dyknow, to see what goes on in it.