A small and simple library for OOP in Lua.
Here's a simple example:
local class = require("Self")
local Point = class {
x = 0,
y = 0
}
function Point:new(x, y)
self.x = x
self.y = y
end
local p = Point(10, 40)
Read the docs here
A small and simple library for OOP in Lua.
Here's a simple example:
local class = require("Self")
local Point = class {
x = 0,
y = 0
}
function Point:new(x, y)
self.x = x
self.y = y
end
local p = Point(10, 40)
Read the docs here