Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miqueas/self
Simple and compact OOP library for Lua
https://github.com/miqueas/self
lua lua51 lua52 lua53 object-oriented-programming oop
Last synced: about 1 month ago
JSON representation
Simple and compact OOP library for Lua
- Host: GitHub
- URL: https://github.com/miqueas/self
- Owner: Miqueas
- License: zlib
- Created: 2020-04-30T10:33:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T20:26:24.000Z (9 months ago)
- Last Synced: 2024-05-06T21:25:36.811Z (9 months ago)
- Topics: lua, lua51, lua52, lua53, object-oriented-programming, oop
- Language: Lua
- Homepage:
- Size: 63.5 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![License][LicenseBadge]][licenseURL]
# Self
A small and simple library for OOP in Lua.
## Basic usage
Here's a simple example:
```lua
local class = require("Self")
local Point = class {
x = 0,
y = 0
}function Point:new(x, y)
self.x = x
self.y = y
endlocal p = Point(10, 40)
```Read the docs [here](Docs.md)
[LicenseBadge]: https://img.shields.io/badge/License-Zlib-brightgreen?style=flat
[LicenseURL]: https://opensource.org/licenses/Zlib