Skip to content

Instantly share code, notes, and snippets.

@dankohn
Last active February 7, 2018 19:56
Show Gist options
  • Save dankohn/923e89c9f67ee7452242e8b5ca5995d9 to your computer and use it in GitHub Desktop.
Save dankohn/923e89c9f67ee7452242e8b5ca5995d9 to your computer and use it in GitHub Desktop.
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