Method: Pay::Currency.format
- Defined in:
- lib/pay/currency.rb
.format(amount, currency:, **options) ⇒ Object
Takes an amount (in cents) and currency and returns the formatted version for the currency
15 16 17 18 |
# File 'lib/pay/currency.rb', line 15 def self.format(amount, currency:, **) currency ||= :usd new(currency).format_amount(amount, **) end |