@nebulaglitch/shopbot
Version:
A library to generate shopbot output
28 lines (26 loc) • 675 B
JavaScript
function _define_property(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
class Variable {
toString() {
return '&' + this.name + ', ' + this.assignment;
}
constructor(name, assignment){
_define_property(this, "name", void 0);
_define_property(this, "assignment", void 0);
this.name = name;
this.assignment = assignment;
}
}
export { Variable as default };
//# sourceMappingURL=variable.js.map