module Money::Parse

Defined in:

money/money/parse.cr

Constant Summary

PATTERNS = {/(?<sign>\+|\-)?(?<amount>\d+(?:[.,]\d+)?)\s*(?<symbol>[^0-9,.]+)/, /(?<sign>\+|\-)?(?<symbol>[^0-9,.]+)\s*(?<amount>\d+(?:[.,]\d+)?)/}

Instance Method Summary

Instance Method Detail

def parse(str : String, allow_ambiguous = true) : Money #

[View source]
def parse?(str : String, allow_ambiguous = true) : Money | Nil #

[View source]