Control Characters in Script Strings

I noticed that a couple of scripts I have installed support Control Characters in their strings. For instance, you could put a variable in a string like this: "\\V[id]" and it will display that variable just like in Show Text.
How is this possible? I am just curious. ^^ ;

(I should probably note that I have no experience with Ruby, but I can kind of understand what certain commands do.)

Original thread: https://forums.rpgmakerweb.com/threads/control-characters-in-script-strings.152899/