Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (14 sloc) 0.224 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module FizzBuzz

  def self.answer number
    if number % 15 == 0
      return 'fizzbuzz'
    end

    if number % 3 == 0
      return 'fizz'
    end

    if number % 5 == 0
      return 'buzz'
    end

    number
  end
end
Something went wrong with that request. Please try again.