module FizzBuzzer::V2d
Public Instance Methods
fizzbuzz()
click to toggle source
# File lib/fizzbuzzer.rb, line 69 def fizzbuzz (1..100).map do |n| next "FizzBuzz" if n % 3 == 0 && n % 5 == 0 next "Fizz" if n % 3 == 0 next "Buzz" if n % 5 == 0 n end end