lib/my_gems.rb in my_gems-0.1.0 vs lib/my_gems.rb in my_gems-0.2.0

- old
+ new

@@ -1,5 +1,16 @@ require "my_gems/version" module MyGems - # Your code goes here... + class FizzBuzz + def initialize(number) + @number = number + end + + def say + return 'FizzBuzz' if @number % 15 == 0 + return 'Buzz' if @number % 5 == 0 + return 'Fizz' if @number % 3 == 0 + @number.to_s + end + end end