Method: Axlsx::MergedCells#add
- Defined in:
- lib/axlsx/workbook/worksheet/merged_cells.rb
#add(cells) ⇒ Object
adds cells to the merged cells collection collection. This can be an array of actual cells or a string style range like ‘A1:C1’
17 18 19 20 21 22 23 24 25 |
# File 'lib/axlsx/workbook/worksheet/merged_cells.rb', line 17 def add(cells) self << if cells.is_a?(String) cells elsif cells.is_a?(Array) Axlsx::cell_range(cells, false) elsif cells.is_a?(Row) Axlsx::cell_range(cells, false) end end |