Print the ruler on paper and glue it on some cardboard or use self-adhesive labels.
Align the edge of the cardbord with the dashed line and glue the printout(s) on both sides.
Finally just cut it out.

Michael Hanickel, 2008