Class: Sass::Engine

### Home Classes Methods

### In Files

- lib/compass/import-once/activate.rb

### Parent

Object

### Methods

- ::new

### Class/Module Index

Quicksearch

- Compass
- Compass::ImportOnce
- Compass::ImportOnce::Engine
- Compass::ImportOnce::Importer
- Sass
- Sass::Engine

No matching classes.

# Sass::Engine

### Public Class Methods

new(*args) click to toggle source

    # File lib/compass/import-once/activate.rb, line 4
    def self.new(*args)
      instance = super
      instance.extend(Compass::ImportOnce::Engine)
      if i = instance.options[:importer]
        i.extend(Compass::ImportOnce::Importer) unless i.is_a?(Compass::ImportOnce::Importer)
      end
      instance.options[:load_paths].each do |path|
        if path.is_a?(Sass::Importers::Base) && !path.is_a?(Compass::ImportOnce::Importer)
          path.extend(Compass::ImportOnce::Importer)
        elsif !path.is_a?(Sass::Importers::Base)
          Sass::Util.sass_warn "WARNING: #{path.inspect} is on the load path and is not an importer."
        end
      end
      instance
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.