Method: Fat::Color#color

Defined in:
lib/fat/color.rb

#color(cell) ⇒ Object



22
23
24
25
26
# File 'lib/fat/color.rb', line 22

def color cell
  b = extract cell.tag, 'bgcolor="', 'white'
  f = extract cell.body, '<font color="', 'black'
  f == 'black' ? b : "#{f}/#{b}"
end