config v0.1.0 Config.Boolean

Boolean type for config options

Summary

Functions

Booleans itself comes without parsing

Functions

parse(input)

Specs

parse(any) :: {:ok, boolean} | :error

Booleans itself comes without parsing.

Any integer not equal to 0 treated as true.

Any string except "0", "no" and "false" (case insensitive) treated as true

For any other values :error returned