0.01
Low commit activity in last 3 years
No release in over a year
A simple module to assist in formatting unambiguous prices and price ranges in international currencies in a Roman Script context.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

= 6.16.0
 Project Readme

MoneyHelper CircleCI

A simple module to assist in formatting unambiguous prices and price ranges in international currencies in a Roman Script environment.

Usage

Examples:

money_to_text(10000, currency: 'AUD')
#=> 'AUD $100.00'

money_to_text(10000, currency: 'AUD', with_currency: false, with_symbol: false)
#=> '100.00'

money_range_to_text(10000, 40000, currency: 'AUD')
#=> 'AUD $100.00 - 400.00'

money_range_to_text(10000, 40000, currency: 'AUD', delimiter: ' ... ')
#=> 'AUD $100.00 ... 400.00'

Defaults

As of #16 this library explicitly specifies the Money.locale_backend = :currency default.

Contributing

Fork the project. Make your feature addition or bug fix with tests. Send a pull request.

Copyright and License

MIT License, see LICENSE for details.

(c) 2013-2018 Artsy, Sahil Yakhmi, Joey Aghion and contributors.