Method: Spreadsheet::Workbook#add_format

Defined in:
lib/spreadsheet/workbook.rb

#add_format(format) ⇒ Object

Add a Format to the Workbook. If you use Row#set_format, you should not need to use this Method.



36
37
38
39
# File 'lib/spreadsheet/workbook.rb', line 36

def add_format format
  @formats.push(format) if format && !@formats.include?(format)
  format
end