Class: FSSM::Cache::Node

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/vendor/fssm/cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#each, #initialize

Instance Attribute Details

#ftypeObject

Returns the value of attribute ftype.



96
97
98
# File 'lib/vendor/fssm/cache.rb', line 96

def ftype
  @ftype
end

#mtimeObject

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