Created
August 27, 2015 05:52
-
-
Save yuu-ito/13fdde4c867cf5a3be6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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