Skip to content

Basic Usage

bjmfactory edited this page Nov 17, 2014 · 3 revisions

Creation

It's simple to get started:

ProgressBar.create

Creates a basic progress bar beginning at 0, a maximum capacity of 100 and tells it to start.

Progress: |                                                                       |

Marking Progress

Every call to #increment will advance the bar by 1. Therefore:

50.times { progressbar.increment }

Would output an advancing line which would end up here:

Progress: |===================================                                    |
Clone this wiki locally