lib/axlsx/workbook/worksheet/row.rb in axlsx-2.1.0.pre vs lib/axlsx/workbook/worksheet/row.rb in axlsx-3.0.0.pre

- old
+ new

@@ -101,9 +101,16 @@ self << c worksheet.send(:update_column_info, self, []) c end + # sets the color for every cell in this row + def color=(color) + each_with_index do | cell, index | + cell.color = color.is_a?(Array) ? color[index] : color + end + end + # sets the style for every cell in this row def style=(style) each_with_index do | cell, index | cell.style = style.is_a?(Array) ? style[index] : style end