UNPKG

@abbott-platform/abbott-framework

Version:

Abbott Framework is a framework to bring productivity and abstractions to help you to build awesome chatbots.

23 lines (20 loc) 367 B
module.exports = class TextBuilder { constructor(){ this.text = ''; } add() { if ((arguments) && (arguments.length > 0)) { for (let i = 0; i < arguments.length; i++) { this.text += String(arguments[i]); } } return this; } newLine() { this.add('\n'); return this; } toString() { return this.text; } };