Stuck in the IRB (Interactive Ruby Shell)

This is incredibly stupid, but I got stuck in the IRB the other day and couldn’t exit.

The prompt looked like this:


instead of 


So I couldn’t exit no matter command I typed.  After searching on the internet for quite awhile, I found the answer to be not a text command, but CNTL-key + C.  Hopefully this saves someone else time if they can’t seem to exit from the IRB.