Class | Sass::Script::Tree::UnaryOperation |
In: |
lib/sass/script/tree/unary_operation.rb
|
Parent: | Node |
A SassScript parse node representing a unary operation, such as `-$b` or `not true`.
Currently only `-`, `/`, and `not` are unary operators.
operand | [R] | @return [Script::Node] The parse-tree node for the object of the operator |
operator | [R] | @return [Symbol] The operation to perform |
Evaluates the operation.
@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Sass::Script::Value] The SassScript object that is the value of the operation @raise [Sass::SyntaxError] if the operation is undefined for the operand