Method: Sass::Script::Value::Base#unary_not

Defined in:
lib/sass/script/value/base.rb

#unary_notSass::Script::Value::Bool

The SassScript == operation. Note that this returns a Sass::Script::Value::Bool object, not a Ruby boolean.

Parameters:

  • other (Value)

    The right-hand side of the operator

Returns:



80
81
82
# File 'lib/sass/script/value/base.rb', line 80

def unary_not
  Sass::Script::Value::Bool.new(!to_bool)
end