Sha256: 7d2910d402ef981217e48472a923986ffe94373bdeeb6b1809541228c49f8385
Contents?: true
Size: 496 Bytes
Versions: 2
Compression:
Stored size: 496 Bytes
Contents
Just a gem to convert a number to its string representation, using currency names. For example: >> require "currencystring" => true >> class Numeric >> include CurrencyString >> end => Numeric >> 1.to_currency_s("en_US") => "one dollar" >> 1.01.to_currency_s("en_US") => "one dollar and one cent" >> 10.10.to_currency_s("en_US") => "ten dollars and ten cents" With no language specified, it will try to get the default system language. When the language is not supported, a '?' is returned.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
CurrencyString-0.0.1 | README |
CurrencyString-0.0.2 | README |