Class: FileProcesserManager

Inherits:
Object
  • Object
show all
Defined in:
lib/file_processer.rb

Instance Method Summary collapse

Constructor Details

#initialize(files, fileProcesserList) ⇒ FileProcesserManager

Returns a new instance of FileProcesserManager.



58
59
60
61
# File 'lib/file_processer.rb', line 58

def initialize(files, fileProcesserList)
    @files = files
    @fileProcesserList = fileProcesserList
end

Instance Method Details

#processObject



74
75
76
77
78
79
80
81
82
# File 'lib/file_processer.rb', line 74

public def process()
    ocFiles = getFiles()
    puts "共发现 #{ocFiles.count} 个文件可能需要替换"
    
    @@count = 0
    ocFiles.each do |filePath|
        processFile(filePath)
    end
end