Method: Excelx#font

Defined in:
lib/roo/excelx.rb

#font(row, col, sheet = nil) ⇒ Object

Given a cell, return the cell’s style



245
246
247
248
249
250
251
252
253
# File 'lib/roo/excelx.rb', line 245

def font(row, col, sheet=nil)
  sheet = @default_sheet unless sheet
  read_cells(sheet) unless @cells_read[sheet]
  row,col = normalize(row,col)
  s_attribute = @s_attribute[sheet][[row,col]]
  s_attribute ||= 0
  s_attribute = s_attribute.to_i
  @style_definitions[s_attribute]
end