Method: RubyXL::WorkbookConvenienceMethods#get_fill_color

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

#get_fill_color(xf) ⇒ Object

[View source]

23
24
25
# File 'lib/rubyXL/convenience_methods/workbook.rb', line 23

def get_fill_color(xf)
  fills[xf.fill_id]&.pattern_fill&.fg_color&.get_rgb(self)&.to_s || 'ffffff'
end