Module: FizzBuzzer::V2d
- Defined in:
- lib/fizzbuzzer.rb
Instance Method Summary collapse
Instance Method Details
#fizzbuzz ⇒ Object
69 70 71 72 73 74 75 76 |
# 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 |