View Source Tio.Format (Tío v1.0.0)

Formatting functions used by the functions in the Tio module.

Link to this section Summary

Functions

Formats iodata as a message_type

Formats iodata as a message_type via format/2 and prints it to stdout

Link to this section Types

Specs

message_type() :: :action | :error | :info | :quoted | :step

Link to this section Functions

Link to this function

format(message_type, iodata)

View Source

Specs

format(message_type :: message_type(), iodata :: iodata()) :: iodata()

Formats iodata as a message_type

Link to this function

puts(message_type, iodata)

View Source

Specs

puts(message_type :: message_type(), iodata :: iodata()) :: :ok

Formats iodata as a message_type via format/2 and prints it to stdout