I believe I've seen a safety edge to put on your ruler so that won't happen to you.
Like someone else, when I read your post, my stomach flipped. I can just imagine how sore your finger is!! So sorry this happened to you. Being tired really does cause accidents doesn't it? I've learned to quit before I get to that point to, but sure understand how this happened.