mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-29 21:13:55 +00:00
18 lines
259 B
TypeScript
18 lines
259 B
TypeScript
/**
|
|
* @returns {StringAssembler}
|
|
*/
|
|
export class StringAssembler {
|
|
private str = ''
|
|
clear = ()=> {
|
|
this.str = '';
|
|
}
|
|
/**
|
|
* @param {string} x -
|
|
*/
|
|
append(x: string) {
|
|
this.str += String(x);
|
|
}
|
|
toString() {
|
|
return this.str
|
|
}
|
|
}
|