Datacaster
v0.1.6
Pages
Modules
Search documentation of Datacaster
Settings
View Source
Datacaster.Predefined
(Datacaster v0.1.6)
Summary
Functions
left * right
See
Kernel.*/2
.
left <> right
See
Kernel.<>/2
.
left > right
See
Kernel.>/2
.
array(error \\ "should be an array")
array_of(caster)
boolean(error \\ "should be a boolean")
cast(func)
check(error \\ "invalid", func)
choosy_schema(caster)
compare(value, error \\ nil)
float(error \\ "should be a float")
gettext_context(caster, gettext_context)
gettext_namespace(caster, namespaces)
gettext_opts(caster, opts)
hash(error \\ "should be a hash")
hash_schema(opts)
included_in(list, error \\ nil)
integer(error \\ "should be an integer")
iso_8601(error \\ "should be an ISO 8601 date")
non_empty_string(error \\ "should be a non-empty string")
on(caster, opts)
optional(caster, opts \\ [])
pass()
pick(opts)
remove()
run(func)
schema(caster)
string(error \\ "should be a string")
switch(condition, opts)
to_boolean(error \\ "should be a boolean")
to_float(error \\ "should be a float")
to_integer(error \\ "should be an integer")
transform(func)
transform_to_hash(opts)
trier(error \\ "invalid", exception, func)
Functions
Link to this function
left * right
View Source
See
Kernel.*/2
.
Link to this function
left <> right
View Source
See
Kernel.<>/2
.
Link to this function
left > right
View Source
See
Kernel.>/2
.
Link to this function
array(error \\ "should be an array")
View Source
Link to this function
array_of(caster)
View Source
Link to this function
boolean(error \\ "should be a boolean")
View Source
Link to this macro
cast(func)
View Source
(macro)
Link to this macro
check(error \\ "invalid", func)
View Source
(macro)
Link to this function
choosy_schema(caster)
View Source
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
hash_schema(opts)
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
on(caster, opts)
View Source
Link to this function
optional(caster, opts \\ [])
View Source
Link to this function
pass()
View Source
Link to this function
pick(opts)
View Source
Link to this function
remove()
View Source
Link to this macro
run(func)
View Source
(macro)
Link to this function
schema(caster)
View Source
Link to this function
string(error \\ "should be a string")
View Source
Link to this function
switch(condition, opts)
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 function
transform_to_hash(opts)
View Source
Link to this macro
trier(error \\ "invalid", exception, func)
View Source
(macro)