Sha256: 392d9c799893b783cee0459a2fce4c51d9507e62f3aabff6a258ffe089e6372f
Contents?: true
Size: 241 Bytes
Versions: 4
Compression:
Stored size: 241 Bytes
Contents
# encoding: utf-8 require 'tty-progressbar' bar = TTY::ProgressBar.new("downloading [:bar] :percent", head: '>', total: 30) 30.times do |i| if i == 15 bar.update(head: 'x') bar.stop break end sleep(0.1) bar.advance end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tty-progressbar-0.13.0 | examples/failure.rb |
tty-progressbar-0.12.2 | examples/failure.rb |
tty-progressbar-0.12.1 | examples/failure.rb |
tty-progressbar-0.12.0 | examples/failure.rb |