DarkMatter.Inflections.constantize

You're seeing just the function constantize, go back to DarkMatter.Inflections module for more information.

Specs

constantize(String.t()) :: String.t()

Returns the upper case version of the string

Examples

iex> constantize("foo_bar")
"FOO_BAR"

iex> constantize("foo")
"FOO"

iex> constantize("__foo_bar")
"FOO_BAR"

iex> constantize("__foo")
"FOO"

iex> constantize("_foo")
"FOO"