Skip to content

Instantly share code, notes, and snippets.

@hamin
Created November 21, 2011 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamin/1383759 to your computer and use it in GitHub Desktop.
Save hamin/1383759 to your computer and use it in GitHub Desktop.
Ruby Golf 1 FizzBuzz (http://rubysource.com/ruby-golf/)
def fizzbuzz(n)n%15==0?"FizzBuzz": n%5==0?"Buzz": n%3==0?"Fizz": n.to_s end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment