Fastfwd v0.1.0 Fastfwd.Namespace View Source

Treat module names as namespaces

Link to this section Summary

Functions

Normalises a module name to a string

Link to this section Functions

Link to this function

normalize(namespace) View Source
normalize(module() | String.t()) :: [String.t()]

Normalises a module name to a string.

Returns a string beginning with "Elixir."

Examples

iex> Fastfwd.Namespace.normalize(Icecream.Chocolate)
"Elixir.Icecream.Chocolate"