Skip to content

Instantly share code, notes, and snippets.

@yuu-ito
Created August 27, 2015 05:52
Show Gist options
  • Save yuu-ito/13fdde4c867cf5a3be6d to your computer and use it in GitHub Desktop.
Save yuu-ito/13fdde4c867cf5a3be6d to your computer and use it in GitHub Desktop.
puts "start!"
bar ="->"
(1..5).each {
print "\r#{bar}"
sleep 0.5
bar = "-"+bar
}
puts "\nend!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment