enver v0.2.0 Enver.BooleanParser

Link to this section Summary

Functions

Converts the given binary to an boolean

Link to this section Types

Link to this type invalid()
invalid() :: Enver.invalid()
Link to this type valid()
valid() :: {:ok, boolean()}

Link to this section Functions

Link to this function parse(val, map)
parse(val(), opts()) :: valid() | invalid()

Converts the given binary to an boolean.

iex(1)> Enver.BooleanParser.parse("true", %{type: :boolean})
{:ok, true}