Skip to content

Instantly share code, notes, and snippets.

@m3talsmith
Created June 18, 2013 20:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m3talsmith/5809280 to your computer and use it in GitHub Desktop.
Save m3talsmith/5809280 to your computer and use it in GitHub Desktop.
A simple single line replacement example
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