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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.