RomanNumeralGenerator
It's a simple gem to translate Arabic to Roman numerals. It works in the [1...3999] range.
Installation
Add this line to your application's Gemfile:
gem 'roman_numeral_generator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install roman_numeral_generator
Usage
You can use it by either requiring the gem and manually calling the generate method:
require "roman_numeral_generator"
generator = RomanNumeralGenerator.new
generator.generate(100)
Or by using the executable that is shipped as part of the gem:
$ roman_numeral_generator 100
Contributing
- Fork it ( https://github.com/[my-github-username]/roman_numeral_generator/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