PassiveSupport.String.safe_existing_atom
You're seeing just the function
safe_existing_atom
, go back to PassiveSupport.String module for more information.
Link to this function
safe_existing_atom(arg)
Specs
Safely casts the string to an atom, returning {:ok, atom}
if successful
and :error
if not.
Examples
iex> safe_existing_atom("ok")
{:ok, :ok}
iex> safe_existing_atom("not_particularly_ok")
:error