-
Notifications
You must be signed in to change notification settings - Fork 0
Home
github-actions[bot] edited this page Aug 21, 2024
·
6 revisions
place where you can learn about all the stuff in classjs
local class, new = require("classjs")("class", "new");
local Example = class "Example" {
constructor = function(self, name)
self.Name = name;
end,
Test = function(self)
return string.lower(self.Name)
end,
Type = 1
};
print(Example); -- [class Example]
local pim = new "Example"("pim");
print(pim.Name); -- "pim"
print(pim.Type); -- 1