abstract struct Number
- Number
- Value
- Object
Overview
The top-level number type.
Included Modules
- Comparable(BigFloat)
- Comparable(Number)
- Steppable
Direct Known Subclasses
Defined in:
core_ext/to_money.crInstance Method Summary
-
#to_money(currency = Money.default_currency, exchange = nil) : Money
Returns a
Money
instance parsed fromself
. -
#to_money?(currency = Money.default_currency, exchange = nil) : Money | Nil
Returns a
Money
instance parsed fromself
if possible,nil
otherwise.
Instance Method Detail
Returns a Money
instance parsed from self
.
See also Money.from_amount
.
Returns a Money
instance parsed from self
if possible, nil
otherwise.
See also Money.from_amount
.