Sha256: a2d22c64473ce92ff8b40c65cc5ef662fda1fb2d166faa49c5c81220b5492deb

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'progressbar')

module TaliaUtil
  
  # Helper class for command-line progress bars as progressor objects
  class BarProgressor
    
    def self.run_with_progress(message, size)
      progress = ProgressBar.new(message, size)
      yield(progress)
      progress.finish
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
talia_core-0.7.0 lib/talia_util/bar_progressor.rb