Class Sass::Script::UnaryOperation
In: lib/sass/script/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.

Methods

_perform   children   inspect   new   to_sass  

Public Class methods

@param operand [Script::Node] The parse-tree node

  for the object of the operator

@param operator [Symbol] The operator to perform

Public Instance methods

Returns the operand of the operation.

@return [Array<Node>] @see Node#children

@return [String] A human-readable s-expression representation of the operation

Protected Instance methods

Evaluates the operation.

@param environment [Sass::Environment] The environment in which to evaluate the SassScript @return [Literal] The SassScript object that is the value of the operation @raise [Sass::SyntaxError] if the operation is undefined for the operand

[Validate]