Class: FSSM::Cache::Node
- Inherits:
-
Object
- Object
- FSSM::Cache::Node
- Includes:
- Common
- Defined in:
- lib/vendor/fssm/cache.rb
Instance Attribute Summary collapse
-
#ftype ⇒ Object
Returns the value of attribute ftype.
-
#mtime ⇒ Object
Returns the value of attribute mtime.
Instance Method Summary collapse
Methods included from Common
Instance Attribute Details
#ftype ⇒ Object
Returns the value of attribute ftype.
96 97 98 |
# File 'lib/vendor/fssm/cache.rb', line 96 def ftype @ftype end |
#mtime ⇒ Object
Returns the value of attribute mtime.
95 96 97 |
# File 'lib/vendor/fssm/cache.rb', line 95 def mtime @mtime end |
Instance Method Details
#<=>(other) ⇒ Object
98 99 100 |
# File 'lib/vendor/fssm/cache.rb', line 98 def <=>(other) self.mtime <=> other.mtime end |
#from_path(path) ⇒ Object
102 103 104 105 106 |
# File 'lib/vendor/fssm/cache.rb', line 102 def from_path(path) path = absolute_path(path) @mtime = path.mtime @ftype = path.ftype end |