Module Sass::Plugin::Configuration
In: lib/sass/plugin/merb.rb
lib/sass/plugin/configuration.rb
lib/sass/plugin/rails.rb

Methods

Public Instance methods

Adds a new template-location/css-location mapping. This means that Sass/SCSS files in `template_location` will be compiled to CSS files in `css_location`.

This is preferred over manually manipulating the {file:SASS_REFERENCE.md#template_location-option `:template_location` option} since the option can be in multiple formats.

Note that this method will change `options[:template_location]` to be in the Array format. This means that even if `options[:template_location]` had previously been a Hash or a String, it will now be an Array.

@param template_location [String] The location where Sass/SCSS files will be. @param css_location [String] The location where compiled CSS files will go.

Returns the default options for a {Sass::Plugin::Compiler}.

@return [{Symbol => Object}]

Different default options in a m envirionment.

Different default options in a rails envirionment.

An options hash. See {file:SASS_REFERENCE.md#sass_options the Sass options documentation}.

@return [{Symbol => Object}]

Sets the options hash. See {file:SASS_REFERENCE.md#sass_options the Sass options documentation}. See {Sass::Plugin::Configuration#reset!} @deprecated Instead, modify the options hash in-place. @param value [{Symbol => Object}] The options hash

Removes a template-location/css-location mapping. This means that Sass/SCSS files in `template_location` will no longer be compiled to CSS files in `css_location`.

This is preferred over manually manipulating the {file:SASS_REFERENCE.md#template_location-option `:template_location` option} since the option can be in multiple formats.

Note that this method will change `options[:template_location]` to be in the Array format. This means that even if `options[:template_location]` had previously been a Hash or a String, it will now be an Array.

@param template_location [String]

  The location where Sass/SCSS files were,
  which is now going to be ignored.

@param css_location [String]

  The location where compiled CSS files went, but will no longer go.

@return [Boolean]

  Non-`nil` if the given mapping already existed and was removed,
  or `nil` if nothing was changed.

Resets the options and {Sass::Callbacks::InstanceMethods#clear_callbacks! clears all callbacks}.

Returns the template locations configured for Sass as an array of `[template_location, css_location]` pairs. See the {file:SASS_REFERENCE.md#template_location-option `:template_location` option} for details.

@return [Array<(String, String)>]

  An array of `[template_location, css_location]` pairs.

[Validate]