Created
June 18, 2013 20:55
-
-
Save m3talsmith/5809280 to your computer and use it in GitHub Desktop.
A simple single line replacement example
This file contains hidden or 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 'Counting up to 100' | |
100.times do |i| | |
print "\rcurrent number: #{i + 1}" | |
sleep 0.1 | |
end | |
puts '' | |
puts 'Done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment