examples/properties.rb in write_xlsx-1.10.0 vs examples/properties.rb in write_xlsx-1.10.1
- old
+ new
@@ -13,18 +13,18 @@
workbook = WriteXLSX.new('properties.xlsx')
worksheet = workbook.add_worksheet
workbook.set_properties(
- :title => 'This is an example spreadsheet',
- :subject => 'With document properties',
- :author => 'John McNamara',
- :manager => 'Dr. Heinz Doofenshmirtz',
- :company => 'of Wolves',
- :category => 'Example spreadsheets',
- :keywords => 'Sample, Example, Properties',
- :comments => 'Created with Perl and Excel::Writer::XLSX',
- :status => 'Quo'
+ title: 'This is an example spreadsheet',
+ subject: 'With document properties',
+ author: 'John McNamara',
+ manager: 'Dr. Heinz Doofenshmirtz',
+ company: 'of Wolves',
+ category: 'Example spreadsheets',
+ keywords: 'Sample, Example, Properties',
+ comments: 'Created with Perl and Excel::Writer::XLSX',
+ status: 'Quo'
)
worksheet.set_column('A:A', 70)
worksheet.write('A1', "Select 'Office Button -> Prepare -> Properties' to see the file properties.")