$ luarocks install oops
Oops is a lightweight object-oriented programming (OOP) library for Lua,
offering class-based inheritance and a clean, expressive syntax.
It supports:
- Concise inline class definitions
- Anonymous and local classes
- Single inheritance with superclass member access
- Class fields/methods
- Metamethods with inheritance
Oops is fast and minimal — the simplest class is just a table with an initializer.
It's designed to be easy to use, easy to extend, and suitable for both scripting
and larger projects.
Versions
Dependencies
lua >= 5.1