O'Reilly logo

Ruby Programming for the Absolute Beginner by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Working with Collections of Data

So far, every time you have worked with data in this book, it has been using variables to store and manage individual pieces of information. While this is certainly an excellent way to manage small amounts of information, things become very difficult when you start creating scripts that need to work with dozens, hundreds, or even thousands of pieces of data at one time. This chapter will show you how to manage groups of related data, like you might find in a personal address book or a small database, using arrays and hashes. Using the information presented in this chapter, you will learn how to develop Ruby scripts capable of storing, retrieving, and manipulating huge amounts of data with a minimum of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required