defmodule Core.Author do @moduledoc false @author_config Application.compile_env!(:sloanely_but_surely, :author) @doc """ Returns the author configuration. """ def get do @author_config end @doc """ Returns a specific attribute from the author configuration. """ def get(attribute) when is_atom(attribute) do Map.get(@author_config, attribute) end end