lib/taskjuggler/FileList.rb in taskjuggler-0.0.11 vs lib/taskjuggler/FileList.rb in taskjuggler-0.1.0

- old
+ new

@@ -42,9 +42,18 @@ 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. + def masterFile + @files.each_key do |file| + return file if file[-4, 4] == '.tjp' + end + + nil + end + # Return true if any of the files in the list have been modified after # they were added to the list. def modified? @files.each_value do |f| return true if f.modified?