This repository was archived by the owner on Aug 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Classes
paige edited this page Sep 20, 2023
·
5 revisions
Class is the export from aepl and it's used to make new aepl classes
When new classes are created it automatically defines it for you unless you tell it not to
const Class = require('aepl');
// creates a new class named Main
new Class("Main", class {
constructor() {
this.data = [ 1, 2, 3 ];
}
});
// creates a new instance of the Main class
let main = new Main();
console.log(main.data); // [ 1, 2, 3 ]description: creates a new aepl class
parameters:
- name
String: name of the class- class
Class: class to create using- ?autodefine
Boolean: if the class should automatically define or notnew Class("Example1", class { /* class info */ }); let Example2 = new Class("Example2", class { /* class info */ }, false); let ex1 = new Example1(); let ex2 = new Example2();
If you want to check out the different versions and changes check out the releases
For a look into the development side check out the src folder
init()
from()
inspect()
new()
addClass()
addFunc()
addProp()
addChore()
addAsyncChore()
addPreClass()
addPreFunc()
addPreProp()
addPreChore()
addPreAChore()
setName()
setInspect()
Subclass
Function
Property
Chore
AsyncChore
Preclass
PreFunction
PreProperty
PreChore
PreAsyncChore
compact
multiple-layers
event handler
alternate names
setting and getting inspects