[ANN] Money 3.0.5

Money 3.0.5

  • Added Money#abs
  • Updated Currency#subunit_to_unit documentation (it’s an integer not a
  • Fixed issue when exchanging currencies with different :subunit_to_unit
  • Added ability to pass a block to VariableExchangeBank#new or
    #exchange, specifying a custom truncation method
  • Added optional currency argument to Numeric#to_money
  • Added optional currency argument to String#to_money
  • Numeric#to_money now respects :subunit_to_unit
  • Use ‘¤’ as the default currency symbol


Starting in v3.1.0 we will be making two changes to the exchange
process. First
a new Bank::Base class will be available. This will allow users to
easily create custom Bank classes. Secondly the default #exchange
will be depreciated and a new #exchange_with method will be used.
#exchange passes the cents attribute. #exchange_with will pass the
actual Money object instead.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs