long_array.each_with_progressbar { |item| puts item }
$ gem install each_with_progressbar
or
# Gemfile
gem 'each_with_progressbar'
and
$ bundle install
require 'each_with_progressbar'
[1, 2, 3].each_with_progressbar { |num| num }
ruby test/each_with_progressbar_test.rb
Fork & pull-request.