ResourceCache.Utility (Resource Cache v0.0.4) View Source

Link to this section Summary

Link to this section Functions

Link to this function

decorate_get(config, index)

View Source

Specs

decorate_get(ResourceCache.Config.t(), ResourceCache.Config.Index.t()) :: term()
Link to this function

decorate_get(config, index, name)

View Source

Specs

decorate_get(ResourceCache.Config.t(), ResourceCache.Config.Index.t(), atom()) ::
  term()

Specs

decorate_get_by(ResourceCache.Config.t()) :: term()

Specs

get_by_doc(ResourceCache.Config.t()) :: String.t()
Link to this function

get_doc(config, index, func)

View Source

Specs

get_doc(ResourceCache.Config.t(), ResourceCache.Config.Index.t(), atom()) ::
  String.t()

Specs

list_doc(ResourceCache.Config.t()) :: String.t()

Specs

mix_env() :: atom()

Get the current Mix environment.

Example

iex> ApplicationX.mix_env
:test

Specs

sort_by(sorter :: term(), field :: atom()) :: (... -> any())

Generate a sort_by function based on the given sorter.

Mostly sanitizes quoted functions from compile time.

Link to this function

spec(func, args, result, scope \\ Elixir)

View Source

Specs

spec(atom(), [atom() | {atom(), term()}], term(), module()) :: term()

Specs

spec_list(term()) :: term()

Specs

spec_or(term(), term()) :: term()
Link to this function

spec_type(module, type \\ :t)

View Source

Specs

spec_type(module(), atom()) :: term()