Module: Compass::Configuration::Defaults

### Home Classes Methods

### In Files

- lib/compass/configuration/defaults.rb

### Methods

- #default_cache
- #default_cache_dir
- #default_cache_path
- #default_chunky_png_options
- #default_color_output
- #default_css_dir
- #default_css_path
- #default_environment
- #default_extensions_dir
- #default_extensions_path
- #default_fonts_dir
- #default_fonts_path
- #default_generated_images_dir
- #default_generated_images_path
- #default_http_fonts_dir
- #default_http_fonts_path
- #default_http_generated_images_dir
- #default_http_generated_images_path
- #default_http_images_dir
- #default_http_images_path
- #default_http_javascripts_dir
- #default_http_javascripts_path
- #default_http_path
- #default_http_stylesheets_dir
- #default_http_stylesheets_path
- #default_images_dir
- #default_images_path
- #default_javascripts_path
- #default_line_comments
- #default_output_style
- #default_preferred_syntax
- #default_project_path
- #default_project_type
- #default_sass_dir
- #default_sass_path
- #default_sprite_engine
- #default_sprite_load_path
- #http_join
- #http_pathify
- #http_root_relative

### Class/Module Index

Quicksearch

- Compass
- Compass::BrowserSupport
- Compass::Configuration
- Compass::Configuration::Adapters
- Compass::Configuration::Data
- Compass::Configuration::Defaults
- Compass::Configuration::Inheritance
- Compass::Configuration::Inheritance::ClassMethods
- Compass::Configuration::Inheritance::ClassMethods::ArrayProxy
- Compass::Configuration::Inheritance::InstanceMethods
- Compass::Configuration::Paths
- Compass::Configuration::Watch
- Compass::Core
- Compass::Core::CanIUse
- Compass::Core::SassExtensions
- Compass::Core::SassExtensions::Functions
- Compass::Core::SassExtensions::Functions::Colors
- Compass::Core::SassExtensions::Functions::Configuration
- Compass::Core::SassExtensions::Functions::Constants
- Compass::Core::SassExtensions::Functions::CrossBrowserSupport
- Compass::Core::SassExtensions::Functions::CrossBrowserSupport::CSS2FallbackValue
- Compass::Core::SassExtensions::Functions::Display
- Compass::Core::SassExtensions::Functions::Enumerate
- Compass::Core::SassExtensions::Functions::Env
- Compass::Core::SassExtensions::Functions::Files
- Compass::Core::SassExtensions::Functions::FontFiles
- Compass::Core::SassExtensions::Functions::GradientSupport
- Compass::Core::SassExtensions::Functions::GradientSupport::Assertions
- Compass::Core::SassExtensions::Functions::GradientSupport::CSS3AngleToSVGConverter
- Compass::Core::SassExtensions::Functions::GradientSupport::ColorStop
- Compass::Core::SassExtensions::Functions::GradientSupport::Functions
- Compass::Core::SassExtensions::Functions::GradientSupport::Gradient
- Compass::Core::SassExtensions::Functions::GradientSupport::Gradient::ClassMethods
- Compass::Core::SassExtensions::Functions::GradientSupport::LinearGradient
- Compass::Core::SassExtensions::Functions::GradientSupport::RadialGradient
- Compass::Core::SassExtensions::Functions::ImageSize
- Compass::Core::SassExtensions::Functions::ImageSize::ImageProperties
- Compass::Core::SassExtensions::Functions::ImageSize::JPEG
- Compass::Core::SassExtensions::Functions::InlineImage
- Compass::Core::SassExtensions::Functions::Lists
- Compass::Core::SassExtensions::Functions::Math
- Compass::Core::SassExtensions::Functions::SassDeclarationHelper
- Compass::Core::SassExtensions::Functions::Selectors
- Compass::Core::SassExtensions::Functions::Urls
- Compass::Core::SassExtensions::Functions::Urls::FontUrl
- Compass::Core::SassExtensions::Functions::Urls::GeneratedImageUrl
- Compass::Core::SassExtensions::Functions::Urls::ImageUrl
- Compass::Core::SassExtensions::Functions::Urls::StylesheetUrl
- Compass::Error
- Compass::Frameworks
- Compass::Frameworks::Framework
- Compass::HasDeprecatedConstantsFromCore
- Compass::SassExtensions
- Compass::SassExtensions::Functions
- Compass::Util
- Sass
- Sass::Script
- Sass::Script::CrossBrowserFunctionCall
- Sass::Script::Funcall
- Sass::Script::Functions
- Sass::Script::Functions::EvaluationContext
- Sass::Script::HasSimpleCrossBrowserFunctionSupport
- Sass::Script::List
- Sass::Script::Value
- Sass::Script::Value::ArgList
- Sass::Script::Value::Base
- Sass::Script::Value::List
- Sass::Script::Value::Map
- Sass::Tree
- Sass::Tree::Node

No matching classes.

# Compass::Configuration::Defaults

### Public Instance Methods

default_cache() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 164
    def default_cache
      true
    end

default_cache_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 100
    def default_cache_dir
      ".sass-cache"
    end

default_cache_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 104
    def default_cache_path
      if (pp = top_level.project_path) && (dir = top_level.cache_dir_without_default)
        Compass.projectize(dir, pp)
      # TODO We should make Sass::Plugin.options a configuration source instead of
      # TODO one-offing it like this.
      elsif defined?(Sass::Plugin) && Sass::Plugin.options[:cache_location]
        File.expand_path(Sass::Plugin.options[:cache_location])
      elsif (pp = top_level.project_path) && (dir = top_level.cache_dir)
        Compass.projectize(dir, pp)
      end
    end

default_chunky_png_options() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 176
    def default_chunky_png_options
      if defined?(::Zlib)
        {:compression => Zlib::BEST_COMPRESSION}
      else
        {}
      end
    end

default_color_output() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 52
    def default_color_output
      true
    end

default_css_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 20
    def default_css_dir
      "stylesheets"
    end

default_css_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 62
    def default_css_path
      if (pp = top_level.project_path) && (dir = top_level.css_dir)
        Compass.projectize(dir, pp)
      end
    end

default_environment() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 36
    def default_environment
      :development
    end

default_extensions_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 16
    def default_extensions_dir
      "extensions"
    end

default_extensions_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 88
    def default_extensions_path
      if (pp = top_level.project_path) && (dir = top_level.extensions_dir)
        Compass.projectize(dir, pp)
      end
    end

default_fonts_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 28
    def default_fonts_dir
      "fonts"
    end

default_fonts_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 94
    def default_fonts_path
      if (pp = top_level.project_path) && (dir = top_level.fonts_dir)
        Compass.projectize(dir, pp)
      end
    end

default_generated_images_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 116
    def default_generated_images_dir
      top_level.images_dir
    end

default_generated_images_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 74
    def default_generated_images_path
      if (pp = top_level.project_path) && (dir = top_level.generated_images_dir)
        Compass.projectize(dir, pp)
      else
        top_level.images_path
      end
    end

default_http_fonts_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 148
    def default_http_fonts_dir
      top_level.fonts_dir
    end

default_http_fonts_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 152
    def default_http_fonts_path
      http_root_relative top_level.http_fonts_dir
    end

default_http_generated_images_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 120
    def default_http_generated_images_dir
      top_level.http_images_dir
    end

default_http_generated_images_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 144
    def default_http_generated_images_path
      http_root_relative top_level.http_generated_images_dir
    end

default_http_images_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 124
    def default_http_images_dir
      top_level.images_dir
    end

default_http_images_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 132
    def default_http_images_path
      http_root_relative top_level.http_images_dir
    end

default_http_javascripts_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 156
    def default_http_javascripts_dir
      top_level.javascripts_dir
    end

default_http_javascripts_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 160
    def default_http_javascripts_path
      http_root_relative top_level.http_javascripts_dir
    end

default_http_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 12
    def default_http_path
      "/"
    end

default_http_stylesheets_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 136
    def default_http_stylesheets_dir
      top_level.css_dir
    end

default_http_stylesheets_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 140
    def default_http_stylesheets_path
      http_root_relative top_level.http_stylesheets_dir
    end

default_images_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 32
    def default_images_dir
      "images"
    end

default_images_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 68
    def default_images_path
      if (pp = top_level.project_path) && (dir = top_level.images_dir)
        Compass.projectize(dir, pp)
      end
    end

default_javascripts_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 82
    def default_javascripts_path
      if (pp = top_level.project_path) && (dir = top_level.javascripts_dir)
        Compass.projectize(dir, pp)
      end
    end

default_line_comments() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 48
    def default_line_comments
      top_level.environment == :development
    end

default_output_style() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 40
    def default_output_style
      if top_level.environment == :development
        :expanded
      else
        :compressed
      end
    end

default_preferred_syntax() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 168
    def default_preferred_syntax
      :scss
    end

default_project_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 4
    def default_project_path
      "."
    end

default_project_type() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 8
    def default_project_type
      :stand_alone
    end

default_sass_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 24
    def default_sass_dir
      "sass"
    end

default_sass_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 56
    def default_sass_path
      if (pp = top_level.project_path) && (dir = top_level.sass_dir)
        Compass.projectize(dir, pp)
      end
    end

default_sprite_engine() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 172
    def default_sprite_engine
      :chunky_png
    end

default_sprite_load_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 128
    def default_sprite_load_path
      [top_level.images_path]
    end

http_join(*segments) click to toggle source

helper functions

    # File lib/compass/configuration/defaults.rb, line 186
    def http_join(*segments)
      segments.map do |segment|
        next unless segment
        segment = http_pathify(segment)
        segment[-1..-1] == "/" ? segment[0..-2] : segment
      end.join("/")
    end

http_pathify(path) click to toggle source

    # File lib/compass/configuration/defaults.rb, line 194
    def http_pathify(path)
      if File::SEPARATOR == "/"
        path
      else
        path.gsub(File::SEPARATOR, "/")
      end
    end

http_root_relative(path) click to toggle source

    # File lib/compass/configuration/defaults.rb, line 202
    def http_root_relative(path)
      http_join top_level.http_path, path
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.