Sha256: ef635b2e1dfdca31d29552682fc8ef99b6645979993a4a4f1cbe773bee403637
Contents?: true
Size: 505 Bytes
Versions: 4
Compression:
Stored size: 505 Bytes
Contents
module ActiveMocker class Progress def self.create(count) require 'ruby-progressbar' self.new(count) rescue LoadError NullProgress.new end def initialize(count) @count = count end def increment progress.increment end def progress @progress ||= ProgressBar.create(title: 'Generating Mocks', total: @count, format: '%t |%b>>%i| %p%%') end end end
Version data entries
4 entries across 4 versions & 1 rubygems