Sha256: 2a86320905e1ac028aac1075c0b6b2509cad85b980120ee34ed4835216e557c1
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
require "sequel" require "tqdm" # @see Sequel::Dataset module Sequel # In order to use `Tqdm` with Sequel Datasets, we can simply extend `Sequel::Dataset` # with the same `#tqdm` method # # @see Enumerable#tqdm # @see http://sequel.jeremyevans.net/ # @see http://sequel.jeremyevans.net/rdoc/classes/Sequel/Dataset.html class Dataset # Returns a clone of `self` where all calls to `#each` and related methods will print an animated progress bar # while iterating. # # @see Enumerable#tqdm def tqdm(opts = {}) Tqdm::TqdmDecorator.new(self, opts).enhance end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tqdm-0.1.0 | lib/tqdm/sequel.rb |