Rolodex v0.10.1 Rolodex.Writer behaviour

A behavior to write to arbitrary entities.

Link to this section Summary

Callbacks

Closes the given IO.device()

Returns an open IO.device() for writing

Should implement a way to write to a IO.device()

Link to this section Callbacks

Link to this callback

close(arg0)
close(IO.device()) :: :ok | {:error, any()}

Closes the given IO.device().

Link to this callback

init(arg0)
init(list() | map()) :: {:ok, IO.device()} | {:error, any()}

Returns an open IO.device() for writing.

Link to this callback

write(arg0, arg1)
write(IO.device(), String.t()) :: :ok

Should implement a way to write to a IO.device().