module Fizzbuzz
Constants
- VERSION
Public Instance Methods
fizzbuzz(x)
click to toggle source
# File lib/fizzbuzz.rb, line 5 def fizzbuzz(x) if (x % 3).zero? && (x % 5).zero? "fizz buzz!" elsif (x % 3).zero? "fizz!" elsif (x % 5).zero? "buzz!" else x end end