config_getters v0.1.0 ConfigGetters View Source

A module for generating cofing getters.

Example

defmodule ApplicationModule do
  use ConfigGetters

  config_getters :my_app, [:key1, :key2, :key3]

  # Access config values using their key name
  # For example key1() will return key1 config value
end

Link to this section Summary

Functions

Generates application config getters for the given application and keys

Link to this section Functions

Link to this macro config_getters(app, keys) View Source (macro)

Generates application config getters for the given application and keys.