| Class | Sass::Script::Variable |
| In: |
lib/sass/script/variable.rb
|
| Parent: | Node |
| name | [R] |
The name of the variable.
@return [String] |
Evaluates the variable.
@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Literal] The SassScript object that is the value of the variable @raise [Sass::SyntaxError] if the variable is undefined
# File lib/sass/script/variable.rb, line 25
25: def perform(environment)
26: (val = environment.var(name)) && (return val)
27: raise SyntaxError.new("Undefined variable: \"!#{name}\".")
28: end