SimpleDescriber

class SimpleDescriber(string: String) : Function1<(String) -> Unit, Unit>

A SimpleDescriber is a Describer that is given an already-constructed String at construction time.

Author

Mark van Gulik

Parameters

string

The String that this describer describes itself as.

Constructors

Link copied to clipboard
fun SimpleDescriber(string: String)

Construct a new SimpleDescriber with an already-computed String.

Functions

Link copied to clipboard
open operator override fun invoke(continuation: (String) -> Unit)

Use the previously stored String as the description, passing it into the specified continuation.