# ri > Sass::Script::Tree::UnaryOperation

## [Sass::Script::Tree::UnaryOperation](https://www.chedong.com/phpMan.php/perldoc/Sass%3A%3AScript%3A%3ATree%3A%3AUnaryOperation/markdown) < [Sass::Script::Tree::Node](https://www.chedong.com/phpMan.php/perldoc/Sass%3A%3AScript%3A%3ATree%3A%3ANode/markdown)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
A SassScript parse node representing a unary operation, such as `-$b` or
`not true`.

Currently only -, /, and not are unary operators.
------------------------------------------------------------------------
## Class methods:

  new

## Instance methods:

  _perform
  children
  deep_copy
  inspect
  operand
  operator
  to_sass

## Attributes:

  attr_reader operand
  attr_reader operator

