Money.Sigil.sigil_M
You're seeing just the function
sigil_M
, go back to Money.Sigil module for more information.
Specs
sigil_M(binary(), list()) :: Money.t() | {:error, {Exception.t(), String.t()}}
Implements the sigil ~M
for Money
The lower case ~m
variant does not exist as interpolation and excape
characters are not useful for Money sigils.
Example
iex> import Money.Sigil
iex> ~M[1000]usd
#Money<:USD, 1000>
iex> ~M[1000.34]usd
#Money<:USD, 1000.34>