examples/shape3.rb in write_xlsx-1.10.0 vs examples/shape3.rb in write_xlsx-1.10.1
- old
+ new
@@ -14,14 +14,14 @@
workbook = WriteXLSX.new('shape3.xlsx')
worksheet = workbook.add_worksheet
normal = workbook.add_shape(
- :name => 'chip',
- :type => 'diamond',
- :text => 'Normal',
- :width => 100,
- :height => 100
+ name: 'chip',
+ type: 'diamond',
+ text: 'Normal',
+ width: 100,
+ height: 100
)
worksheet.insert_shape('A1', normal, 50, 50)
normal.text = 'Scaled 3w x 2h'
normal.name = 'Hope'