Skip to content

cpeosphoros/30log-plus

 
 

Repository files navigation

30log-plus-logo

Build Status Lua License Coverage Status

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.

Installation

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'

Wiki

A full documentation is available on the wiki.

Class-Commons support

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.

Specs

You can run the included specs with Telescope using the following command from Lua from the root foolder:

lua tsc -f specs/*

License

This work is MIT-Licensed.

About

30 lines library for object orientation in Lua, plus some features

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 94.3%
  • Shell 5.7%