Sha256: 2e6954f98413113245aa7c15d830064d8cbafe3fc42298544a8ac07f94c89393

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

#!/usr/bin/env ruby
require "rubygems"
require 'collimator'

include Collimator

ProgressBar.start({:min => 0, :max => 100, :method => :percent, :step_size => 10})
0.upto(10) do
  sleep 0.5
  ProgressBar.increment
end

sleep 0.5
ProgressBar.complete

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
collimator-0.0.3 examples/progress_bar.rb
collimator-0.0.2 examples/progress_bar.rb