Otera.Joiner (otera v0.1.0)

Copy Markdown View Source

The joiner(sep=", ") object of Jinja2. A call gives an empty string the first time and sep after that. Whether it was called lives in Otera.State.

Summary

Functions

Calls the joiner.

Returns the attribute name of joiner.

Makes a joiner with the separator sep.

Functions

call(joiner)

@spec call(%Otera.Joiner{ref: term(), sep: term()}) :: term()

Calls the joiner.

get(joiner, name)

@spec get(%Otera.Joiner{ref: term(), sep: term()}, String.t()) :: term()

Returns the attribute name of joiner.

new(sep)

@spec new(term()) :: %Otera.Joiner{ref: term(), sep: term()}

Makes a joiner with the separator sep.