Method: Lingo::Database::Progress#initialize

Defined in:
lib/lingo/database/progress.rb

#initialize(obj, src, doit = true) ⇒ Progress

Returns a new instance of Progress.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/lingo/database/progress.rb', line 33

def initialize(obj, src, doit = true)
  super(obj, src.size, obj.config['name'], doit, 'convert', false)

  if defined?(@count)
    count, rejected = src.rejected

    if count > 0
      print ' (', count, ' rejected'
      print ': ', rejected if rejected
      print ')'
    end

    print "\n"
  end
end