Class: Sass::Script::Functions::EvaluationContext

Inherits:
Object
  • Object
show all
Includes:
Sass::Script::Functions
Defined in:
lib/sass/script/functions.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Sass::Script::Functions

#abs, #ceil, #floor, #hsl, #percentage, #rgb, #round

Constructor Details

#initialize(options) ⇒ EvaluationContext

Returns a new instance of EvaluationContext.

Parameters:



57
58
59
# File 'lib/sass/script/functions.rb', line 57

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsHash<Symbol, Object> (readonly)

The options hash for the Engine that is processing the function call

Returns:



54
55
56
# File 'lib/sass/script/functions.rb', line 54

def options
  @options
end