sloanelybutsurely.com/lib/core/author.ex
2025-04-12 13:04:57 -04:00

19 lines
387 B
Elixir

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