Summary
In this introductory chapter, we analyzed how to work with the array data structure in Ruby and examined three ways to delete items from an array (using the functions delete, delete_at, and delete_if). We examined how Ruby implements the ability to add and remove items from the end of an array using push and pop methods.
We also discussed how to work with the hash data structure, which enables developers to store key/value-based data, and we analyzed how to remove items from a hash. We also walked through how to iterate through a hash. After going through these sections, you must be able to appreciate how flexible the Ruby programming language is when it comes to working with hashes.
We also examined some of the most beneficial methods ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access