A little demo gem that changes numbers into words.
This gem is built for ruby 2.0.0 and above.
Add this line to your application's Gemfile:
gem 'numbertoword', :git => 'https://github.com/nikkij/numbertoword.git'
And then execute:
$ bundle
Or install locally for development or to run tests:
$ git clone https://github.com/nikkij/numbertoword.git
$ cd numbertoword
$ rake install
To run the rspec tests make sure you have the rspec gem installed or specified as a dependency in your Gemfile.
Just type the command "numbertoword" at the console.
$ numbertoword
At the prompt enter any number from 1 - 999,999,999 .
- Fork it ( https://github.com/[my-github-username]/numbertoword/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