Sha256: 6965538536cea98a30b34ad22c6ea1faba2492cee92c2c6002093533bd420a9d

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

module BitClust
  # Null-object version of ProgressBar.
  class SilentProgressBar

    attr_accessor :title

    def self.create(output: $stderr, title:, total:)
      self.new(output: output, title: title, total: total)
    end

    def initialize(output:, title:, total:)
      @title, @total, @output = title, total, output
    end

    def increment
    end

    def finish
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bitclust-core-1.2.6 lib/bitclust/silent_progress_bar.rb
bitclust-core-1.2.5 lib/bitclust/silent_progress_bar.rb
bitclust-core-1.2.4 lib/bitclust/silent_progress_bar.rb
bitclust-core-1.2.3 lib/bitclust/silent_progress_bar.rb
bitclust-core-1.2.2 lib/bitclust/silent_progress_bar.rb