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)

Parameters:
  • 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)
  return if value.is_a?(Sass::Script.const_get(type))
  raise ArgumentError.new("#{value.inspect} is not a #{type.to_s.downcase}")
end

def initialize(options)

Parameters:
  • options ({Symbol => Object}) -- See \{#options}
def initialize(options)
  @options = options
  # We need to include this individually in each instance
  # because of an icky Ruby restriction
  class << self; include Sass::Script::Functions; end
end