in scala/text
object Document

object Document
extends Object
with ScalaObject

Method Summary
final def break: DocBreak.type
     A break, which will either be turned into a space or a line break
final def empty: DocNil.type
     The empty document
final def group(d: Document): Document
     A group, whose components will either be printed with all breaks rendered as spaces, or with all breaks rendered as line breaks.
final def nest(i: Int, d: Document): Document
     A nested document, which will be indented as specified.
final def text(s: String): Document
     A document consisting of some text literal

Method Detail

empty

  final def empty: DocNil.type
The empty document

break

  final def break: DocBreak.type
A break, which will either be turned into a space or a line break

text

  final def text(s: String): Document
A document consisting of some text literal

group

  final def group(d: Document): Document
A group, whose components will either be printed with all breaks rendered as spaces, or with all breaks rendered as line breaks.

nest

  final def nest(i: Int, d: Document): Document
A nested document, which will be indented as specified.