aepl 1.3.0
- added pre classes and functions that let you create stuff for before the class is initiated
- added setInspect for changing the output on the console
const cl = require('aepl');
cl.init("Example", class {
constructor(data) {
this.data = data
}
});
Example.newPF("from", function(data) {
return new Example(data);
});
Example.setInspect(function() {
return `Example Class (${this.data.length}) [ ${this.data.join(", ")} ]`;
});
console.log(Example.from([ 1, 2, 3 ])); // Example Class (3) [ 1, 2, 3 ]