class LiveFixtures::Import::ProgressBarIterator
Public Class Methods
new(ff)
click to toggle source
# File lib/live_fixtures/import.rb, line 171 def initialize(ff) @ff = ff @bar = LiveFixtures.get_progress_bar( total: ff.fixtures.size, title: ff.model_class.name ) end
Public Instance Methods
each() { |*args| ... }
click to toggle source
# File lib/live_fixtures/import.rb, line 179 def each @ff.each_table_row_with_label do |*args| yield(*args) @bar.increment unless @bar.finished? end @bar.finish end