### Home Classes Methods

### In Files

- lib/compass/configuration/defaults.rb

### Methods

- #default_cache
- #default_cache_path
- #default_chunky_png_options
- #default_color_output
- #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_path
- #default_javascripts_path
- #default_line_comments
- #default_output_style
- #default_preferred_syntax
- #default_project_path
- #default_project_type
- #default_sass_path
- #default_sprite_engine
- #default_sprite_load_path
- #http_join
- #http_pathify
- #http_root_relative

### Class/Module Index

Quicksearch

- Compass
- Compass::Actions
- Compass::AppIntegration
- Compass::AppIntegration::Helpers
- Compass::AppIntegration::Rails
- Compass::AppIntegration::StandAlone
- Compass::AppIntegration::StandAlone::ConfigurationDefaults
- Compass::AppIntegration::StandAlone::Installer
- Compass::BrowserSupport
- Compass::Commands
- Compass::Commands::Base
- Compass::Commands::CleanProject
- Compass::Commands::CleanProjectOptionsParser
- Compass::Commands::CompileProjectOptionsParser
- Compass::Commands::ConfigurationOptionsParser
- Compass::Commands::CreateProject
- Compass::Commands::CreateProjectOptionsParser
- Compass::Commands::Default
- Compass::Commands::DefaultOptionsParser
- Compass::Commands::ExtensionCommand
- Compass::Commands::ExtensionOptionsParser
- Compass::Commands::ExtensionsOptionParser
- Compass::Commands::GenerateGridBackground
- Compass::Commands::GridBackgroundOptionsParser
- Compass::Commands::Help
- Compass::Commands::HelpOptionsParser
- Compass::Commands::Imports
- Compass::Commands::InstallerCommand
- Compass::Commands::Interactive
- Compass::Commands::InteractiveOptionsParser
- Compass::Commands::ListFrameworks
- Compass::Commands::MemoryDebugger
- Compass::Commands::PrintVersion
- Compass::Commands::ProjectBase
- Compass::Commands::ProjectStats
- Compass::Commands::Registry
- Compass::Commands::Sprite
- Compass::Commands::SpriteOptionsParser
- Compass::Commands::StampPattern
- Compass::Commands::StampPatternOptionsParser
- Compass::Commands::StatsOptionsParser
- Compass::Commands::StructureOptionsParser
- Compass::Commands::UnpackExtension
- Compass::Commands::UpdateProject
- Compass::Commands::ValidateProject
- Compass::Commands::ValidationOptionsParser
- Compass::Commands::VersionOptionsParser
- Compass::Commands::WatchProject
- Compass::Commands::WatchProjectOptionsParser
- Compass::Commands::WriteConfiguration
- Compass::Compiler
- Compass::Configuration
- Compass::Configuration::Adapters
- Compass::Configuration::Comments
- Compass::Configuration::Data
- Compass::Configuration::Defaults
- Compass::Configuration::FileData
- Compass::Configuration::Helpers
- Compass::Configuration::Inheritance
- Compass::Configuration::Inheritance::ClassMethods
- Compass::Configuration::Inheritance::ClassMethods::ArrayProxy
- Compass::Configuration::Inheritance::InstanceMethods
- Compass::Configuration::Paths
- Compass::Configuration::Serialization
- Compass::Error
- Compass::Exec
- Compass::Exec::CommandOptionParser
- Compass::Exec::GlobalOptionsParser
- Compass::Exec::Helpers
- Compass::Exec::ProjectOptionsParser
- Compass::Exec::SubCommandUI
- Compass::Exec::SwitchUI
- Compass::FilesystemConflict
- Compass::Frameworks
- Compass::Frameworks::Framework
- Compass::GridBuilder
- Compass::Installers
- Compass::Installers::BareInstaller
- Compass::Installers::Base
- Compass::Installers::Manifest
- Compass::Installers::Manifest::Entry
- Compass::Installers::ManifestInstaller
- Compass::Installers::TemplateContext
- Compass::Logger
- Compass::MissingDependency
- Compass::NullLogger
- Compass::PNG
- Compass::SassExtensions
- Compass::SassExtensions::Functions
- Compass::SassExtensions::Functions::Colors
- Compass::SassExtensions::Functions::Constants
- Compass::SassExtensions::Functions::CrossBrowserSupport
- Compass::SassExtensions::Functions::CrossBrowserSupport::CSS2FallbackValue
- Compass::SassExtensions::Functions::Display
- Compass::SassExtensions::Functions::Enumerate
- Compass::SassExtensions::Functions::Env
- Compass::SassExtensions::Functions::FontFiles
- Compass::SassExtensions::Functions::GradientSupport
- Compass::SassExtensions::Functions::GradientSupport::Assertions
- Compass::SassExtensions::Functions::GradientSupport::ColorStop
- Compass::SassExtensions::Functions::GradientSupport::Functions
- Compass::SassExtensions::Functions::GradientSupport::Gradient
- Compass::SassExtensions::Functions::GradientSupport::Gradient::ClassMethods
- Compass::SassExtensions::Functions::GradientSupport::LinearGradient
- Compass::SassExtensions::Functions::GradientSupport::RadialGradient
- Compass::SassExtensions::Functions::ImageSize
- Compass::SassExtensions::Functions::ImageSize::ImageProperties
- Compass::SassExtensions::Functions::ImageSize::JPEG
- Compass::SassExtensions::Functions::InlineImage
- Compass::SassExtensions::Functions::Lists
- Compass::SassExtensions::Functions::Math
- Compass::SassExtensions::Functions::Selectors
- Compass::SassExtensions::Functions::Sprites
- Compass::SassExtensions::Functions::Sprites::VariableReader
- Compass::SassExtensions::Functions::Urls
- Compass::SassExtensions::Functions::Urls::FontUrl
- Compass::SassExtensions::Functions::Urls::GeneratedImageUrl
- Compass::SassExtensions::Functions::Urls::ImageUrl
- Compass::SassExtensions::Functions::Urls::StylesheetUrl
- Compass::SassExtensions::Sprites
- Compass::SassExtensions::Sprites::ChunkyPngEngine
- Compass::SassExtensions::Sprites::Engine
- Compass::SassExtensions::Sprites::Image
- Compass::SassExtensions::Sprites::ImageMethods
- Compass::SassExtensions::Sprites::ImageRow
- Compass::SassExtensions::Sprites::LayoutMethods
- Compass::SassExtensions::Sprites::RowFitter
- Compass::SassExtensions::Sprites::SpriteMap
- Compass::SassExtensions::Sprites::SpriteMethods
- Compass::SpriteException
- Compass::SpriteImporter
- Compass::Sprites
- Compass::Sprites::Binding
- Compass::Stats
- Compass::Stats::CssFile
- Compass::Stats::SassFile
- Compass::Stats::StatsVisitor
- Compass::TestCase
- Compass::Util
- Compass::Version
- Sass
- Sass::Script
- Sass::Script::CrossBrowserFunctionCall
- Sass::Script::Funcall
- Sass::Script::Functions
- Sass::Script::Functions::EvaluationContext
- Sass::Script::HasSimpleCrossBrowserFunctionSupport
- Sass::Script::List
- Sass::Tree
- Sass::Tree::Node
- QuickCache

No matching classes.

# Compass::Configuration::Defaults

### Public Instance Methods

default_cache() click to toggle source

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

default_cache_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 89
    def default_cache_path
      if (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 159
    def default_chunky_png_options
      {:compression => Zlib::BEST_COMPRESSION}
    end

default_color_output() click to toggle source

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

default_css_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 51
    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 25
    def default_environment
      :development
    end

default_extensions_dir() click to toggle source

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

default_extensions_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 77
    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 21
    def default_fonts_dir
      File.join(top_level.css_dir, "fonts")
    end

default_fonts_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 83
    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 95
    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 63
    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 127
    def default_http_fonts_dir
      if fd = top_level.fonts_dir_without_default
        fd
      else
        "#{top_level.http_stylesheets_dir}/fonts"
      end
    end

default_http_fonts_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 135
    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 99
    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 123
    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 103
    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 111
    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 139
    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 143
    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 13
    def default_http_path
      "/"
    end

default_http_stylesheets_dir() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 115
    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 119
    def default_http_stylesheets_path
      http_root_relative top_level.http_stylesheets_dir
    end

default_images_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 57
    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 71
    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 37
    def default_line_comments
      top_level.environment == :development
    end

default_output_style() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 29
    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 151
    def default_preferred_syntax
      :scss
    end

default_project_path() click to toggle source

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

default_project_type() click to toggle source

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

default_sass_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 45
    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 155
    def default_sprite_engine
      :chunky_png
    end

default_sprite_load_path() click to toggle source

    # File lib/compass/configuration/defaults.rb, line 107
    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 165
    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 173
    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 181
    def http_root_relative(path)
      http_join top_level.http_path, path
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.