Class: Hearken::Indexing::File
- Inherits:
-
Object
- Object
- Hearken::Indexing::File
- Defined in:
- lib/hearken/indexing/file.rb
Instance Method Summary collapse
-
#initialize(path, root) ⇒ File
constructor
A new instance of File.
- #timestamp ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#timestamp ⇒ Object
6 7 8 |
# File 'lib/hearken/indexing/file.rb', line 6 def @path.mtime.to_i.to_s end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/hearken/indexing/file.rb', line 10 def to_s @path.to_s end |