30log, in extenso 30 Lines Of Goodness is a minified framework for object-orientation in Lua.
It provides named and unnamed classes, single inheritance, metamethods and a basic support for mixins. In 30 lines.
Well, somehow.
30log-plus is both a fork from and an extension to 30log, with a focus on stronger support for class initialization and mixins support. We have decided to keep our changes only to the equivalent of 30log-clean. Those changes will also not be pull requested into Yonaba's repository, as they slightly deviate from his minimalist approach.
30log-plus is available only from https://github.com/cpeosphoros/30log-plus. To install it, just clone or download the repository then place it somewhere Lua will look for it.
Then add 30log-plus to your code:
local class = require '30log-plus'
A full documentation is available on the wiki.
Class-Commons is an interface which provides a common API for a wide range of Object Orientation libraries in Lua. There is a small plugin, originally written by TsT
which provides compatibility between 30log and Class-commons.
See the module 30log-commons.lua.
You can run the included specs with Telescope using the following command from Lua from the root foolder:
lua tsc -f specs/*
This work is MIT-Licensed.