public function __toString() { $this->table->render($this->output); return rtrim($this->output->written()); // Remove trailing \n }