TextTableRepresentable

public protocol TextTableRepresentable

A protocol used to create a TextTable from an object.

  • tableHeader Default implementation

    The text table header.

    Default Implementation

    Returns nil.

    Declaration

    Swift

    static var tableHeader: String?
  • An array column headers to represent this object’s data.

    Declaration

    Swift

    static var columnHeaders: [String]
  • The values to render in the text table. Should have the same count as columnHeaders.

    Declaration

    Swift

    var tableValues: [CustomStringConvertible]