Miqueas / Self

Simple and compact OOP library for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License

Self

A small and simple library for OOP in Lua.

Basic usage

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

About

Simple and compact OOP library for Lua

License:zlib License


Languages

Language:Lua 100.0%