def mod(other)
      if other.is_a?(Sass::Script::Value::Number) ||
          other.is_a?(Sass::Script::Value::Color)
        piecewise(other, :%)
      else
        raise NoMethodError.new(nil, :mod)
      end
    end
def mod(other)
      if other.is_a?(Sass::Script::Value::Number) ||
          other.is_a?(Sass::Script::Value::Color)
        piecewise(other, :%)
      else
        raise NoMethodError.new(nil, :mod)
      end
    end
The SassScript `%` operation.
 Its functionality depends on the type of its argument:

 {Number}
 : Takes each of the RGB color channels module the number.

 {Color}
 : Takes each of this color's RGB color channels modulo the other color's.

 @param other [Number, Color] The right-hand side of the operator
 @return [Color] The resulting color
 @raise [Sass::SyntaxError] if `other` is a number with units