* Adds an HTML table to the summary buffer * * @param {SummaryTableCell[]} rows table rows * * @returns {Summary} summary instance
(rows)
| 19700 | clear() { |
| 19701 | return __awaiter(this, void 0, void 0, function* () { |
| 19702 | return this.emptyBuffer().write({ overwrite: true }); |
| 19703 | }); |
| 19704 | } |
| 19705 | /** |
| 19706 | * Returns the current summary buffer as a string |
| 19707 | * |
| 19708 | * @returns {string} string of summary buffer |
| 19709 | */ |
| 19710 | stringify() { |
| 19711 | return this._buffer; |
| 19712 | } |
| 19713 | /** |
| 19714 | * If the summary buffer is empty |
| 19715 | * |
| 19716 | * @returns {boolen} true if the buffer is empty |
| 19717 | */ |
| 19718 | isEmptyBuffer() { |
| 19719 | return this._buffer.length === 0; |
| 19720 | } |