Erl2ex v0.0.9 Erl2ex.Sink
Erl2ex.Sink is a process that consumes generated Elixir source, normally writing files to the file system.
Summary
Functions
Gets the file contents written to the given ID
Returns whether the given file identifier has been written to
Starts a sink and returns its PID
Stops the sink process
Writes data to a sink, at the given path
Types
t :: pid
The ProcessID of a sink process.
Functions
Specs
get_string(t, Erl2ex.file_id) ::
{:ok, String.t} |
{:error, term}
Gets the file contents written to the given ID.
Available only if the allow_get
configuration is in effect.
Specs
path_written?(t, Erl2ex.file_id) :: boolean
Returns whether the given file identifier has been written to.
Specs
write(t, Erl2ex.file_id, String.t) ::
:ok |
{:error, term}
Writes data to a sink, at the given path.