Class StringBuilderScribe
- java.lang.Object
-
- org.saynotobugs.confidence.scribe.StringBuilderScribe
-
-
Constructor Summary
Constructors Constructor Description StringBuilderScribe(java.lang.String indent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scribeappend(java.lang.CharSequence charSequence)Writes the givenCharSequenceand returns this instance.Scribeindented()Returns a newScribethat adds an indentation to each line.ScribenewLine()Starts a new line with the current indentation and returns this instance.java.lang.StringtoString()
-
-
-
Method Detail
-
indented
public Scribe indented()
Description copied from interface:ScribeReturns a newScribethat adds an indentation to each line.
-
append
public Scribe append(java.lang.CharSequence charSequence)
Description copied from interface:ScribeWrites the givenCharSequenceand returns this instance.
-
newLine
public Scribe newLine()
Description copied from interface:ScribeStarts a new line with the current indentation and returns this instance.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-