[ANN] Money 3.0.5


Shane Emmons

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

## Attention ##

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.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

[ANN] Money 3.1.0.pre2 0
[ANN] Money 3.1.0.pre1 0
[ANN] Money 3.1.0 Released 0
[ANN] Money 3.0.1 3
ANN main-4.4.0 0
[ANN] main-3.0.1 0
ANN: Sequel 3.23.0 Released 0
ANN: Sequel 2.7.0 Released 0