Module: Tqdm

Defined in:
lib/tqdm.rb,
lib/tqdm/printer.rb,
lib/tqdm/version.rb,
lib/tqdm/decorator.rb,
lib/tqdm/printer/default_format.rb

Overview

Add a progress bar to your loops in a second. A port of Python's tqdm library, although we're currently closer to the feature set of @noamraph's original release.

Specifically, Tqdm enhances Enumerable by printing a progress indicator whenever iterating with #each or its close relatives.

See Also:

Author:

  • Theodore Pak

Defined Under Namespace

Classes: Decorator, DecoratorError, Printer

Constant Summary collapse

VERSION =

The version of this module and gem by the same name.

"0.4.1"

Class Method Summary collapse

Class Method Details

.enhance_sequel!Object

Upgrades Sequel::Datasets with the #with_progress method.



19
20
21
# File 'lib/tqdm.rb', line 19

def enhance_sequel!
  require 'tqdm/sequel'
end