View Source Datacaster.Predefined (Datacaster v0.1.6)

Summary

Functions

See Kernel.*/2.

See Kernel.<>/2.

See Kernel.>/2.

Link to this function

array(error \\ "should be an array")

View Source
Link to this function

boolean(error \\ "should be a boolean")

View Source
Link to this macro

check(error \\ "invalid", func)

View Source (macro)
Link to this function

compare(value, error \\ nil)

View Source
Link to this function

float(error \\ "should be a float")

View Source
Link to this function

gettext_context(caster, gettext_context)

View Source
Link to this function

gettext_namespace(caster, namespaces)

View Source
Link to this function

gettext_opts(caster, opts)

View Source
Link to this function

hash(error \\ "should be a hash")

View Source
Link to this function

included_in(list, error \\ nil)

View Source
Link to this function

integer(error \\ "should be an integer")

View Source
Link to this function

iso_8601(error \\ "should be an ISO 8601 date")

View Source
Link to this function

non_empty_string(error \\ "should be a non-empty string")

View Source
Link to this function

optional(caster, opts \\ [])

View Source
Link to this function

string(error \\ "should be a string")

View Source
Link to this function

to_boolean(error \\ "should be a boolean")

View Source
Link to this function

to_float(error \\ "should be a float")

View Source
Link to this function

to_integer(error \\ "should be an integer")

View Source
Link to this macro

transform(func)

View Source (macro)
Link to this macro

trier(error \\ "invalid", exception, func)

View Source (macro)