I don't understand what you mean by "how she made the square before ruffling
it", if you cut your pillow square and gather your ruffle before sewing it onto the pillow; you would sew up to the corner, keep your needle in the down position, raise the presser foot and pivot the pillow 90 degrees and begin sewing again. Repeat for each corner. I hope this is helpful.