Hush.Transformer behaviour (hush v1.3.0)

Copy Markdown View Source

Hush relies on transformers to post process values after resolving them.

You can read here on how to write your own transformer.

Summary

Callbacks

key()

@callback key() :: atom()

transform(config, value)

@callback transform(config :: any(), value :: any()) ::
  {:ok, any()} | {:error, atom() | String.t()}

Functions

apply(options, value)