Skip to content

Releases: Lost-Things-Studio/Class

Class v0.1.0 - Initial LuaRocks-ready release

Choose a tag to compare

@Gopmyc Gopmyc released this 17 May 19:41

Initial release of Class, a lightweight object-oriented helper for Lua.

Class provides a compact class system in a single class.lua file, with no runtime dependencies and support for Lua 5.1+.

Highlights

  • Single-file Lua module.
  • No runtime dependency.
  • Class creation and instance initialization.
  • Inheritance-style includes.
  • Private instance state.
  • Accessors, cloning, operator helpers, and debug output.
  • LuaRocks-ready package under the name lost-class.

Installation

luarocks install lost-class

Then require it in Lua:

local Class = require("class")

Compatibility

Tested with Lua 5.1, 5.2, 5.3, and 5.4.

Documentation

Documentation is available at:

https://lost-things-studio.github.io/Class/