Class: SimpleDocument::FileStore::Document

Inherits:
Ostruct show all
Defined in:
lib/simple_document/file_store.rb

Instance Method Summary collapse

Methods inherited from Ostruct

#active?, #initialize

Constructor Details

This class inherits a constructor from SimpleDocument::Ostruct

Instance Method Details

#mtimeObject



3
4
5
# File 'lib/simple_document/file_store.rb', line 3

def mtime
  @ostruct.mtime ? Time.parse(@ostruct.mtime.to_s) : File.mtime(self.uri)
end