MyApp.Cldr.Territory.to_currency_code-exclamation-mark
You're seeing just the function
to_currency_code-exclamation-mark
, go back to MyApp.Cldr.Territory module for more information.
Specs
to_currency_code!(Cldr.Territory.atom_binary_tag(), Cldr.Territory.as_options()) :: Cldr.Territory.atom_binary_charlist() | no_return()
The same as to_currency_code/2
, but raises an exception if it fails.
options
are:as: :atom
as: :binary
as: :charlist
Example
iex> MyApp.Cldr.Territory.to_currency_code!(:US)
:USD
iex> MyApp.Cldr.Territory.to_currency_code!(:US, as: :charlist)
'USD'
iex> MyApp.Cldr.Territory.to_currency_code!("PS")
:ILS
iex> MyApp.Cldr.Territory.to_currency_code!("PS", as: :binary)
"ILS"