Skip to content

SteamComputing/chinese_numerals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert integers to Chinese Numerals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages