ruby block fixed (plc cookbook)