Sha256: 0b6a6626797ba5645f2878c7905ce3333c53b002b5c8bb6a74f12d588c0dd46e
Contents?: true
Size: 500 Bytes
Versions: 13
Compression:
Stored size: 500 Bytes
Contents
require 'ruby-progressbar' class Progressrus class Store class ProgressBar < Base def persist(progress, force: false, expires_at: false) bar(progress).progress = progress.count end def finish end def flush end private def bar(progress) @bar ||= ::ProgressBar.create( title: progress.id, total: progress.total, format: "%t: %a %e %P% Processed: %c from %C", ) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems