examples/ignore_errors.rb in write_xlsx-1.10.0 vs examples/ignore_errors.rb in write_xlsx-1.10.1
- old
+ new
@@ -23,11 +23,11 @@
worksheet.write_formula('C5', '=1/0')
worksheet.write_formula('C6', '=1/0')
# Turn off some of the warnings:
worksheet.ignore_errors(
- :number_stored_as_text => 'C3',
- :eval_error => 'C6'
+ number_stored_as_text: 'C3',
+ eval_error: 'C6'
)
# Write some descriptions for the cells and make the column wider for clarity.
worksheet.set_column('B:B', 16)
worksheet.write('B2', 'Warning:')