examples/shape5.rb in write_xlsx-0.64.1 vs examples/shape5.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 => 'bentConnector3')
# Link the start of the connector to the right side.
-cxn_shape[:start] = s1[:id]
-cxn_shape[:start_index] = 4 # 4th connection pt, clockwise from top(0).
-cxn_shape[:start_side] = 'b' # r)ight or b)ottom.
+cxn_shape.start = s1.id
+cxn_shape.start_index = 4 # 4th connection pt, clockwise from top(0).
+cxn_shape.start_side = 'b' # r)ight or b)ottom.
# Link the end of the connector to the left side.
-cxn_shape[:end] = s2[:id]
-cxn_shape[:end_index] = 0 # clockwise from top(0).
-cxn_shape[:end_side] = 't' # t)op.
+cxn_shape.end = s2.id
+cxn_shape.end_index = 0 # clockwise from top(0).
+cxn_shape.end_side = 't' # t)op.
worksheet.insert_shape('A1', cxn_shape, 0, 0)
workbook.close