class Sass::Script::Functions::EvaluationContext
are available to use in functions.
That means that all instance methods of {EvaluationContext}
The context in which methods in {Script::Functions} are evaluated.
def assert_type(value, type, name = nil)
-
name
(String, nil
) -- The name of the argument. -
type
(Symbol
) -- The name of the type the value is expected to be -
value
(Sass::Script::Literal
) -- A SassScript value
def assert_type(value, type, name = nil) return if value.is_a?(Sass::Script.const_get(type)) err = "#{value.inspect} is not a #{type.to_s.downcase}" err = "$#{name}: " + err if name raise ArgumentError.new(err) end
def initialize(options)
-
options
({Symbol => Object}
) -- See \{#options}
def initialize(options) @options = options end