Module: FastExcel::WorkbookExt

Defined in:
lib/fast_excel.rb

Instance Method Summary collapse

Instance Method Details

#bold_cell_formatObject



70
71
72
73
74
# File 'lib/fast_excel.rb', line 70

def bold_cell_format
  bold = add_format
  bold.set_bold
  bold
end

#number_format(pattern) ⇒ Object

“#,##0.00” “[$-409]m/d/yy h:mm AM/PM;@”



78
79
80
81
82
# File 'lib/fast_excel.rb', line 78

def number_format(pattern)
  format = add_format
  format.set_num_format(pattern)
  format
end