Class: SimpleDocument::FileStore::Document
- Inherits:
-
Ostruct
- Object
- SimpleDocument
- Ostruct
- SimpleDocument::FileStore::Document
- Defined in:
- lib/simple_document/file_store.rb
Instance Method Summary collapse
Methods inherited from Ostruct
Constructor Details
This class inherits a constructor from SimpleDocument::Ostruct
Instance Method Details
#mtime ⇒ Object
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 |