ChineseNumerals
This simple monkey patching enables the conversion from Integer to Chinese Numerals easily. The single method to_chinese(:simple => true, :decimal => false) is the only thing you need to take care.
Installation
Add this line to your application's Gemfile:
gem 'chinese_numerals'
And then execute:
$ bundle
Or install it yourself as:
$ gem install chinese_numerals
Usage
Check the spec/chinese_numerals_spec.rb to see the various outcomes.
Contributing
- Fork it ( https://github.com/[my-github-username]/chinese_numerals/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request