Class: FSSM::Tree::Node

### Home Classes Methods

### In Files

- lib/fssm/tree.rb

### Parent

Object

### Methods

- #<=>
- #from_path

### Included Modules

- FSSM::Tree::NodeBase
- FSSM::Tree::NodeEnumerable

### Class/Module Index

Quicksearch

- FSSM
- FSSM::Backends
- FSSM::Backends::Inotify
- FSSM::Backends::Polling
- FSSM::Backends::RBFSEvent
- FSSM::Monitor
- FSSM::Path
- FSSM::Pathname
- FSSM::State
- FSSM::State::Directory
- FSSM::State::File
- FSSM::Support
- FSSM::Tree
- FSSM::Tree::Cache
- FSSM::Tree::CacheDebug
- FSSM::Tree::Node
- FSSM::Tree::NodeBase
- FSSM::Tree::NodeEnumerable
- FSSM::Tree::NodeInsertion

No matching classes.

# FSSM::Tree::Node

### Attributes

ftype[RW]
mtime[RW]

### Public Instance Methods

<=>(other) click to toggle source

    # File lib/fssm/tree.rb, line 124
    def <=>(other)
      return unless other.is_a?(::FSSM::Tree::Node)
      self.mtime <=> other.mtime
    end

from_path(path) click to toggle source

    # File lib/fssm/tree.rb, line 129
    def from_path(path)
      path   = FSSM::Pathname.for(path)
      @ftype = path.ftype
      # this handles bad symlinks without failing. why handle bad symlinks at
      # all? well, we could still be interested in their creation and deletion.
      @mtime = path.symlink? ? Time.at(0) : path.mtime
      self
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.