Method: Sass::Script::Value::Base#eq

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

#eq(other) ⇒ Sass::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:



58
59
60
# File 'lib/sass/script/value/base.rb', line 58

def eq(other)
  Sass::Script::Value::Bool.new(self.class == other.class && value == other.value)
end