Sha256: 6e31d0c824ebe2421f797cdcdc6e50c3e1e0031a676b2244d0444341065fbb41
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
module Flucti module Utilities class ProgressBar < ::ProgressBar def initialize(*args) super @bar_mark = "=" end private def fmt_bar bar_width = do_percentage * @terminal_width / 100 sprintf "|%s>%s|", @bar_mark * [bar_width - 1, 0].max, " " * (@terminal_width - bar_width) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Flucti-flucti-cli-0.1.16 | lib/flucti/utilities/progress_bar.rb |