Layout

com.phasmidsoftware.lascala.Layout
See theLayout companion object
final case class Layout(tab: Int => String = ..., maxElements: Option[Int] = ..., bookends: String = ...)

How a rendering is laid out.

Value parameters

bookends

the prefix, separator and suffix of a collection (by default, "(,)")

maxElements

the maximum number of elements of a collection to be rendered (by default, 10)

tab

the white space for a given indent (by default, two spaces per tab). Typically this will be uniform, but you're free to set up a series of tabs like on an old typewriter where the spacing is non-uniform.

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 nl(indent: Int): String

Method to insert an indented (tabbed) newline.

Method to insert an indented (tabbed) newline.

Value parameters

indent

the number of tabs

Attributes

Returns

a newline followed by the white space for indent

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product