/bensFizzBuzz

A simple fizz buzz program written in ruby using Rspec

Primary LanguageRuby

myFizzBuzz

A simple Fizzbuzz program written in ruby using Rspec.

Usage

To use in irb cd to the myFizzBuzz directory

require '*/lib/myFizzBuzz.rb'

The method fizzbuzz is now avalible

fizzbuzz takes a Fixnum and returns:

"fizzbuzz" if the number is divisible by both 5 and 3 

"buzz" if the number is divisible by 3 and not 5 

"buzz" if the number is divisible by 5 and not 3

the number itself if it is divisible by neither 5 or 3.