examples/diag_border.rb in write_xlsx-1.10.0 vs examples/diag_border.rb in write_xlsx-1.10.1
- old
+ new
@@ -4,17 +4,17 @@
require 'write_xlsx'
workbook = WriteXLSX.new('diag_border.xlsx')
worksheet = workbook.add_worksheet
-format1 = workbook.add_format(:diag_type => 1)
-format2 = workbook.add_format(:diag_type => 2)
-format3 = workbook.add_format(:diag_type => 3)
+format1 = workbook.add_format(diag_type: 1)
+format2 = workbook.add_format(diag_type: 2)
+format3 = workbook.add_format(diag_type: 3)
format4 = workbook.add_format(
- :diag_type => 3,
- :diag_border => 7,
- :diag_color => 'red'
+ diag_type: 3,
+ diag_border: 7,
+ diag_color: 'red'
)
worksheet.write('B3', 'Text', format1)
worksheet.write('B6', 'Text', format2)
worksheet.write('B9', 'Text', format3)