Module: FSSM::Backends

### Home Classes Methods

### In Files

- lib/fssm.rb
- lib/fssm/backends/inotify.rb
- lib/fssm/backends/polling.rb
- lib/fssm/backends/rbfsevent.rb

### Namespace

- CLASS FSSM::Backends::Inotify
- CLASS FSSM::Backends::Polling
- CLASS FSSM::Backends::RBFSEvent

### Methods

- ::const_missing
- ::set_backend

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

### Public Class Methods

const_missing(symbol) click to toggle source

    # File lib/fssm.rb, line 53
    def const_missing(symbol)
      symbol == :Default ? set_backend(symbol, FSSM::Support.backend) : super
    end

set_backend(const_symbol=nil, value=nil) click to toggle source

    # File lib/fssm.rb, line 32
    def set_backend(const_symbol=nil, value=nil)
      const_symbol ||= :Default
      value ||= ::FSSM::Support.backend

      if (value.is_a?(Symbol) || value.is_a?(String))
        unless const_defined?(value)
          raise NameError,
            "uninitialized constant FSSM::Backends::#{value}"
        end
        value = const_get(value)
      end

      unless value.is_a?(Class)
        raise ArgumentError,
          "value must be a class or the symbol of an existing backend"
      end

      remove_const(const_symbol) if const_defined?(const_symbol)
      const_set(const_symbol, value)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.