Module.split

You're seeing just the function split, go back to Module module for more information.

Specs

split(module() | String.t()) :: [String.t(), ...]

Splits the given module name into binary parts.

module has to be an Elixir module, as split/1 won't work with Erlang-style modules (for example, split(:lists) raises an error).

split/1 also supports splitting the string representation of Elixir modules (that is, the result of calling Atom.to_string/1 with the module name).

Examples

iex> Module.split(Very.Long.Module.Name.And.Even.Longer)
["Very", "Long", "Module", "Name", "And", "Even", "Longer"]
iex> Module.split("Elixir.String.Chars")
["String", "Chars"]