Current section

Files

Jump to
timber lib timber utils module.ex
Raw

lib/timber/utils/module.ex

defmodule Timber.Utils.Module do
@moduledoc false
@doc """
Returns a string representation of the module name with the `Elixir.` prefix stripped.
"""
def name(module) do
module
|> List.wrap()
|> Module.concat()
|> Atom.to_string()
|> String.replace_prefix("Elixir.", "")
end
end