Method: FastExcel::WorksheetExt#set_column

Defined in:
lib/fast_excel.rb

#set_column(start_col, end_col, width = nil, format = nil) ⇒ Object



526
527
528
529
530
531
532
533
# File 'lib/fast_excel.rb', line 526

def set_column(start_col, end_col, width = nil, format = nil)
  super(start_col, end_col, width || DEF_COL_WIDTH, format)

  return unless format
  start_col.upto(end_col) do |i|
    @col_formats[i] = format
  end
end