wt2doc
Version:
WebTemplate to Asciidoc documentation - a util by Bifrost for Bifrost
25 lines • 565 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringBuilder = void 0;
class StringBuilder {
constructor() {
this.arr = [];
this.arr = [];
}
append(s) {
this.arr.push(s);
return this;
}
toString() {
return this.arr.join('\r\n');
}
newline(s) {
if (s) {
this.append(s);
}
this.append('\n');
return this;
}
}
exports.StringBuilder = StringBuilder;
//# sourceMappingURL=StringBuilder.js.map