DarkMatter.Inflections.atom
You're seeing just the function
atom
, go back to DarkMatter.Inflections module for more information.
Specs
atom(atom() | String.t(), conversion() | [conversion(), ...]) :: atom()
Converts either an atom or string to an atom based on the conversion
.
Examples
iex> atom("_foo_bar123XYZ", :absinthe_camel)
:_fooBar123XYZ
iex> atom(:fooBarz___test, :camel)
:fooBarzTest