vendor/gems/haml-2.2.2/lib/sass/script/color.rb
def to_s
      return HTML4_COLORS_REVERSE[@value] if HTML4_COLORS_REVERSE[@value]
      red, green, blue = @value.map { |num| num.to_s(16).rjust(2, '0') }
      "##{red}#{green}#{blue}"
    end
# Returns a string representation of the color.
# This is usually the color's hex value,
# but if the color has a name that's used instead.
#
# @return [String] The string representation
Returns a string representation of the color.
This is usually the color's hex value,
but if the color has a name that's used instead.
Returns a string representation of the color . This is usually the color ' s hex value but if the color has a name that ' s used instead .
def to_s
      return HTML4_COLORS_REVERSE[@value] if HTML4_COLORS_REVERSE[@value]
      red, green, blue = @value.map { |num| num.to_s(16).rjust(2, '0') }
      "##{red}#{green}#{blue}"
    end
def to_s return HTML4_COLORS_REVERSE [ @value ] if HTML4_COLORS_REVERSE [ @value ] red , green , blue = @value . map { | num | num . to_s ( 16 ) . rjust ( 2 , '0' ) } "##{red}#{green}#{blue}" end
Returns a string representation of the color.
Returns a string representation of the color .
The string representation
The string representation
String