examples/shape6.rb in write_xlsx-0.64.1 vs examples/shape6.rb in write_xlsx-0.65.0

- old
+ new

@@ -32,17 +32,17 @@ # Create a connector to link the two shapes. cxn_shape = workbook.add_shape(:type => 'curvedConnector3') # Link the start of the connector to the right side. -cxn_shape[:start] = s1[:id] -cxn_shape[:start_index] = 2 # 2nd connection pt, clockwise from top(0). -cxn_shape[:start_side] = 'r' # r)ight or b)ottom. +cxn_shape.start = s1.id +cxn_shape.start_index = 2 # 2nd connection pt, clockwise from top(0). +cxn_shape.start_side = 'r' # r)ight or b)ottom. # Link the end of the connector to the left side. -cxn_shape[:end] = s2[:id] -cxn_shape[:end_index] = 4 # 4th connection pt, clockwise from top(0). -cxn_shape[:end_side] = 'l' # l)eft or t)op. +cxn_shape.end = s2.id +cxn_shape.end_index = 4 # 4th connection pt, clockwise from top(0). +cxn_shape.end_side = 'l' # l)eft or t)op. worksheet.insert_shape('A1', cxn_shape, 0, 0) workbook.close