Skip to content

Instantly share code, notes, and snippets.

@raws
Created March 25, 2011 13:53
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 raws/886855 to your computer and use it in GitHub Desktop.
Save raws/886855 to your computer and use it in GitHub Desktop.
5.times do
print "I am a giant bucket"
end
@mysteriouspants
Copy link

Should be something more along the lines of:

5.times do
  print "I am a giant bucket\n"
end

@raws
Copy link
Author

raws commented Mar 25, 2011

puts might be the best choice. But as this was meant as a simple example to a non-programmer of Ruby's readability, I deemed print with a very simple string more comprehensible :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment