5 CONTROL STRUCTURES

Chapters 3, “Simple Types,” and “4 Arrays, Ranges, and Hashes,” introduce the fundamental, built-in types of data you’ll work with in Ruby. This chapter delves into another facet of programming: control structures. This topic includes operators, conditionals, loops, and iterators. What all of these have in common is their ability to alter the logical flow of Ruby code.

Get Ruby: Visual Quickstart Guide 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.