Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 797 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 797 Bytes

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

  1. Fork it ( https://github.com/[my-github-username]/chinese_numerals/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request