class Sass::Script::Value::Color
def mod(other)
-
(Sass::SyntaxError)
- if `other` is a number with units
Returns:
-
(Color)
- The resulting color
Parameters:
-
other
(Number, Color
) -- The right-hand side of the operator
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