https://github.com/rubymoney/money-heuristics
A heuristics module for `money` gem (formerly part of it)
https://github.com/rubymoney/money-heuristics
Last synced: 15 days ago
JSON representation
A heuristics module for `money` gem (formerly part of it)
- Host: GitHub
- URL: https://github.com/rubymoney/money-heuristics
- Owner: RubyMoney
- License: mit
- Created: 2017-03-14T19:54:41.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2025-02-03T14:45:23.000Z (3 months ago)
- Last Synced: 2025-03-27T01:09:39.600Z (about 1 month ago)
- Language: Ruby
- Size: 43.9 KB
- Stars: 12
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# RubyMoney - Money Heuristics
This is a module for heuristic analysis of the string input for the
[money gem](https://github.com/RubyMoney/money). It was formerly part of the gem.[](https://rubygems.org/gems/money-heuristics)
[](https://travis-ci.org/RubyMoney/money-heuristics)
[](https://opensource.org/licenses/MIT)## Installation
Include this line in your `Gemfile`:
```ruby
gem 'money-heuristics'
```## Usage
```ruby
>> Money::Currency.analyze 'USD 200'
=> ["USD"]
>> Money::Currency.analyze 'zł123,000.50'
=> ["PLN"]
```## Contributing
See the [Contribution Guidelines](https://github.com/RubyMoney/money-heuristics/blob/master/CONTRIBUTING.md)