Class: FileProcesserManager
- Inherits:
-
Object
- Object
- FileProcesserManager
- Defined in:
- lib/file_processer.rb
Instance Method Summary collapse
-
#initialize(files, fileProcesserList) ⇒ FileProcesserManager
constructor
A new instance of FileProcesserManager.
- #process ⇒ Object
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
#process ⇒ Object
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 |