-
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π Prototype
π new()
π __isa()
π __super()
π __name
π __instances
π __prototype
π __extendee
π __class
π PrototypeItem
π new()
π __value
π __parent
π __writable
π __configurable
π __enumerable
π Object
π defineProperties()
π defineProperty()
π entries()
π getOwnPropertyDescriptor()
π getOwnPropertyDescriptors()
π keys()
π values()