Method: Sass::Script::Value::Color#div
- Defined in:
- lib/sass/script/value/color.rb
#div(other) ⇒ Color
The SassScript /
operation.
Its functionality depends on the type of its argument:
Number : Divides each of the RGB color channels by the number.
Sass::Script::Value::Color : Divides each of this color's RGB color channels by the other color's.
Sass::Script::Value : See Base#div.
529 530 531 532 533 534 535 536 |
# File 'lib/sass/script/value/color.rb', line 529
def div(other)
if other.is_a?(Sass::Script::Value::Number) ||
other.is_a?(Sass::Script::Value::Color)
piecewise(other, :/)
else
super
end
end
|