Class: FSSM::Path

### Home Classes Methods

### In Files

- lib/fssm/path.rb

### Parent

Object

### Methods

- ::new
- #create
- #delete
- #glob
- #to_pathname
- #to_s
- #update

### 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::Path

### Public Class Methods

new(path=nil, glob=nil, options={}, &block) click to toggle source

    # File lib/fssm/path.rb, line 2
    def initialize(path=nil, glob=nil, options={}, &block)
      @options = options
      set_path(path || '.')
      set_glob(glob || '**/*')
      init_callbacks

      if block_given?
        if block.arity == 1
          block.call(self)
        else
          self.instance_eval(&block)
        end
      end
    end

### Public Instance Methods

create(*args, &block) click to toggle source

    # File lib/fssm/path.rb, line 30
    def create(*args, &block)
      callback_action(:create, (block_given? ? block : args))
    end

delete(*args, &block) click to toggle source

    # File lib/fssm/path.rb, line 38
    def delete(*args, &block)
      callback_action(:delete, (block_given? ? block : args))
    end

glob(value=nil) click to toggle source

    # File lib/fssm/path.rb, line 25
    def glob(value=nil)
      return @glob if value.nil?
      set_glob(value)
    end

to_pathname() click to toggle source

    # File lib/fssm/path.rb, line 21
    def to_pathname
      @path
    end

to_s() click to toggle source

    # File lib/fssm/path.rb, line 17
    def to_s
      @path.to_s
    end

update(*args, &block) click to toggle source

    # File lib/fssm/path.rb, line 34
    def update(*args, &block)
      callback_action(:update, (block_given? ? block : args))
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.