| | |
Summary: Ruby Language QuickRef
General Syntax Rules
Reserved Words
Types
Basic types are numbers, strings, ranges, regexen, symbols, arrays, and hashes. Also included are files because they are
used so often.
Numbers
Strings
In all of the %() cases below, you may use any matching characters or any single character for delimiters. %[], %!!,
%@@, etc.
Backslashes
\t (tab), \n (newline), \r (carriage return),
\f (form feed), \b (backspace), \a (bell),
\e (escape), \s (whitespace), \nnn (octal),
\xnn (hexadecimal), \cx (control x),
\C-x (control x), \M-x (meta x),
\M-\C-x (meta control x)
Here Docs
<
<<"identifier" # interpolation
|