TextTable

org.specs2.text.TextTable
See theTextTable companion object
case class TextTable(header: Seq[String], lines: Seq[Seq[String]], separator: String)

Textual representation of a table with a table and some lines.

It is expected that the size of the header and all the lines are the same.

The main purpose of this class is to:

  • display equal-length cells on each column
  • allow line breaks in cells for each line

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def formatHeight(line: Seq[String]): Seq[Seq[String]]

Format each line cell by splitting them along new lines and adding padding with additional rows

Format each line cell by splitting them along new lines and adding padding with additional rows

Attributes

def show: String

show the table with equal-length cells

show the table with equal-length cells

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product