Method: RubyXL::ColorConvenienceClasses::RgbColor#to_s

Defined in:
lib/rubyXL/convenience_methods/color.rb

#to_sObject

[View source]

72
73
74
75
76
77
78
# File 'lib/rubyXL/convenience_methods/color.rb', line 72

def to_s
  if a && a != 0 then
    format('%02x%02x%02x%02x', r, g, b, a)
  else
    format('%02x%02x%02x', r, g, b)
  end
end