Module envy

Simple error checking functions for application:get_env.

Copyright © 2012 Opscode Inc

Authors: Mark Anderson (mark@opscode.com).

Description

Simple error checking functions for application:get_env

Data Types

envy_type_constraint()

envy_type_constraint() = envy_type_validator() | any | atom | binary | bool | boolean | float | int | integer | list | non_neg_integer | number | pos_integer | positive_integer | string

envy_type_constraints()

envy_type_constraints() = envy_type_constraint() | [envy_type_constraint(), ...]

envy_type_validator()

envy_type_validator() = fun((any()) -> boolean())

Function Index

get/3
get/4
one_of/1
proplist_get/3
proplist_get/4

Function Details

get/3

get(Section::atom(), Item::atom(), TypeCheck::envy_type_constraints()) -> any()

get/4

get(Section::atom(), Item::atom(), Default::any(), TypeCheck::envy_type_constraints()) -> any()

one_of/1

one_of(List::list()) -> function()

proplist_get/3

proplist_get(Key::atom(), TypeCheck::envy_type_constraints(), PropList::list()) -> any()

proplist_get/4

proplist_get(Key::atom(), TypeCheck::envy_type_constraints(), PropList::list(), Default::any()) -> any()


Generated by EDoc