class TaskJuggler::FileRecord

The FileRecord stores the name of a file and the modification time.

Public Class Methods

new(fileName) click to toggle source
# File lib/taskjuggler/FileList.rb, line 18
def initialize(fileName)
  @name = fileName.dup.untaint
  @mtime = File.mtime(@name)
end

Public Instance Methods

modified?() click to toggle source
# File lib/taskjuggler/FileList.rb, line 23
def modified?
  File.mtime(@name) > @mtime
end