Episode 0.20 - progress-monitor
With progress-monitor you can easily add progress bars to your array/hash/integer iterator loops without changing your code."Tracks the progress of a loop." - Miguel Vazquez Garcia
If you have a simple iterator like this:
10.times { do_something }
it is very easy to add a progress bar with progress-monitor:
require 'rubygems'
require 'progress-monitor'
Progress.monitor
10.times { do_something }
the result will look like this
Progress [..........] done 100% (Time left 00:00:00 seconds) (Started 00:00:00 seconds ago)
Links for this episode
| progress-monitor on GitHub |
Tags : progress-monitor, irb