Sha256: 74a115fd5c5ed3bc68aea2d29454dd84731d3c3ba301c8b6c8353c94464675c2
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
require 'my_gems/version' module MyGems class FizzBuzz def initialize(number) @number = number end def say return 'FizzBuzz' if (@number % 15).zero? return 'Buzz' if (@number % 5).zero? return 'Fizz' if (@number % 3).zero? @number.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
my_gems-0.2.2 | lib/my_gems.rb |