class Lingo::Database::Progress

Public Class Methods

new(obj, src, doit = true) click to toggle source
Calls superclass method
# 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