| Class | TaskJuggler::FileList |
| In: |
lib/taskjuggler/FileList.rb
|
| Parent: | Object |
The FileList class stores a list of file names. Each file name is unique and more information about the file is contained in FileRecord entries.
Add the file with fileName to the list. If it‘s already in the list, it will not be added again.
# File lib/taskjuggler/FileList.rb, line 41 def <<(fileName) return if fileName == '.' || @files.include?(fileName) @files[fileName] = FileRecord.new(fileName) end
Return the name of the master file or nil of the master file was stdin.
# File lib/taskjuggler/FileList.rb, line 48 def masterFile @files.each_key do |file| return file if file[-4, 4] == '.tjp' end nil end