config v0.1.0 Config.Integer

Integer type for config options

Summary

Functions

Integers itself comes without parsing

Functions

parse(input)

Specs

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

Integers itself comes without parsing.

For strings call to String.to_integer/1 attempted. If no success, :error returned.

Booleans treated as 1 for true and 0 for false.

For any other values :error returned