Skip to content

Basic Usage

Jeff Felchner edited this page Jul 13, 2016 · 3 revisions

Creation

It's simple to get started:

progressbar = 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: |===================================                                    |

Animated:

Basic Usage Marking Progress