class Sass::Script::Color
def to_s
-
(String)- The string representation
def to_s return HTML4_COLORS_REVERSE[rgb] if HTML4_COLORS_REVERSE[rgb] red, green, blue = rgb.map { |num| num.to_s(16).rjust(2, '0') } "##{red}#{green}#{blue}" end
(String)
- The string representation
def to_s return HTML4_COLORS_REVERSE[rgb] if HTML4_COLORS_REVERSE[rgb] red, green, blue = rgb.map { |num| num.to_s(16).rjust(2, '0') } "##{red}#{green}#{blue}" end