Pierre-Charles David <Pierre-Charles.David / emn.fr> writes:

> >    I can do it for 'a' by saying ?a ... but how about special
> >    characters and whitespace ?
> 
> 
> 'a'[0] is the same as ?a. Use " "[0], "\t"[0]...

You can generate character constants for any characters: page down
about 2-3 pages in http://www.rubycentral.com/book/language.html under
Integer and Floating Point Numbers.

So a tab could be ?\C-i


Dave