Index
Symbols
″ (double quotes), use with string literals, 44–45
′ (single quotes), use with string literals, 44–45
- (subtraction) operator
as binary or unary operator, 132
overloading, 131
. (period)
for matching any single character, 54
in module syntax, 185
using asterisk (*) in conjunction with, 58
/ (division) operator, 131
/ (forward slashes), in regular expression syntax, 58–59
: (colon), in symbol syntax, 66–67
:: (double-colon), in module syntax, 185
; (semicolon), for separating statements in Ruby code, 10–11
\ (backslash)
escaping special meanings of punctuation characters in regular expressions, 54
escaping strings, 44–45
| (or) operator, 131
| (vertical bar), in syntax of alternatives in regular expressions, 56–57
||= operator, ...
Get Eloquent Ruby now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.