Sha256: e2ba08202508e74063a7f68af956ab47f866e6f247b9f039108a0083ae8f33a5
Contents?: true
Size: 298 Bytes
Versions: 5
Compression:
Stored size: 298 Bytes
Contents
class Integer # run `times` with progress # 100.times_with_progress('Numbers') do |number| # # code # end def times_with_progress(title = nil) Progress.start(title, self) do times do |i| Progress.step do yield i end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems