Contents
Chapter 1: Write Code That Looks Like Ruby
Camels for Classes, Snakes Everywhere Else
Parentheses Are Optional but Are Occasionally Forbidden
Chapter 2: Choose the Right Control Structure
Use the Modifier Forms Where Appropriate
Chapter 3: Take Advantage of Ruby’s Smart Collections
Instant Arrays and Hashes from Method Calls
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.