Skip to content

Instantly share code, notes, and snippets.

@dankohn
Last active Feb 7, 2018
Embed
What would you like to do?
puts 1.upto(100).map { |n| "#{'Fizz' if n%3==0}#{'Buzz' if n%5==0}".presence || n }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment