Created
February 21, 2017 12:25
-
-
Save nerdinand/915cb86a85b823e1b32532a1901478e7 to your computer and use it in GitHub Desktop.
ASCII art indeterminate loading spinner
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
a = ['-', '/', '|', '\\'] | |
loop do | |
print "\r#{a.rotate!.first}" | |
sleep 0.1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment