class Sass::Script::Color

def div(other)

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

Returns:
  • (Color) - The resulting color

Parameters:
  • other (Literal) -- The right-hand side of the operator
def div(other)
  if other.is_a?(Sass::Script::Number) || other.is_a?(Sass::Script::Color)
    piecewise(other, :/)
  else
    super
  end
end