Sha256: 7983b72c6f50e06bc8652b1ceed31a35ffe4758a4715ce362e0cf52ba2c522de
Contents?: true
Size: 308 Bytes
Versions: 10
Compression:
Stored size: 308 Bytes
Contents
require "progressbar" module Shelly class DownloadProgressBar < ProgressBar def initialize(total) super("Progress", total) self.format_arguments = [:title, :percentage, :bar, :stat_for_file_transfer] end def progress_callback lambda { |size| inc(size) } end end end
Version data entries
10 entries across 10 versions & 1 rubygems