Class Sass::Script::Functions::EvaluationContext
In: lib/sass/script/functions.rb
Parent: Object

The context in which methods in {Script::Functions} are evaluated. That means that all instance methods of {EvaluationContext} are available to use in functions.

Methods

assert_type   new  

Included Modules

Sass::Script::Functions

Attributes

options  [R]  The options hash for the {Sass::Engine} that is processing the function call

@return [{Symbol => Object}]

Public Class methods

@param options [{Symbol => Object}] See \{options}

Public Instance methods

Asserts that the type of a given SassScript value is the expected type (designated by a symbol). For example:

    assert_type value, :String
    assert_type value, :Number

Valid types are `:Bool`, `:Color`, `:Number`, and `:String`. Note that `:String` will match both double-quoted strings and unquoted identifiers.

@param value [Sass::Script::Literal] A SassScript value @param type [Symbol] The name of the type the value is expected to be

[Validate]