require 'danconia' # USD is the default currency if no configuration is provided puts (Money(10.25) / 2).inspect # => 5.125 USD puts (Money(10.25) / 2).to_s # => $5.13 # Lets switch to other currency Danconia.configure do |config| config.default_currency = 'EUR' config.available_currencies = [{code: 'EUR', symbol: '€'}] end puts Money(10.25).inspect # => 10.25 EUR puts Money(10.25).to_s # => €10.25