class Sass::Script::Value::Number

def plus(other)

Raises:
  • (Sass::UnitConversionError) - if `other` is a number with incompatible units

Returns:
  • (Value) - The result of the operation

Parameters:
  • other (Value) -- The right-hand side of the operator
def plus(other)
  if other.is_a? Number
    operate(other, :+)
  elsif other.is_a?(Color)
    other.plus(self)
  else
    super
  end
end