Fizzbuzz_aj
A gem that contains the logic for a FizzBuzz program.
Give it a maximum value and from 1 to max it will return:
-
Fizzif the number is divisible by 3 -
Buzzif it is divisible by 5 -
FizzBuzzif it is divisible by 15 - or the number if none of those are true
It also can return the result in 3 different formats:
- json
- html
- plain text
Installation
Add this line to your application's Gemfile:
gem 'fizzbuzz_aj'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fizzbuzz_aj
Usage
For example usage look here
Contributing
- Fork it ( https://github.com/[my-github-username]/fizzbuzz_aj/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