MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.

I'm not curious

Ruby Collections

Course Summary

In the Ruby Collections course at Treehouse, you'll level up your Ruby knowledge and start learning about collections. We use two basic data structures to create collections in Ruby: arrays and hashes. These are both examples of "collections" and you’ll work with them a lot in your career as a Ruby programmer. During the course, we'll be writing simple programs that build on what we learned in this course and in previous courses.

  • +

    Course Syllabus

    Ruby Arrays

    An array is a container of data, similar to a list. Arrays can be used to store many different kinds of data including strings, numbers, and almost any other kind of Ruby object. In this stage, we'll learn how to create and manipulate arrays. 8 steps
    • Ruby Arrays 5:03
    • Creating an Array 1 objective
    • Adding Items to Arrays 3:26
    • Adding Items to Arrays 2 objectives
    • Accessing Items in Arrays 4:42
    • Accessing Items in Arrays 3 objectives
    • Removing Items From Arrays 3:43
    • Removing Items From Arrays 2 objectives

    Ruby Hashes

    A hash is data structure similar to an array. Hashes are used all throughout Ruby programs. In this stage, we'll get comfortable creating and working with hashes in Ruby. 8 steps

    Build a Grocery List Program

    Now that we know how to use arrays and hashes, we're going to build a small program that makes a grocery list for us. We'll combine all of the knowledge we've learned so far including input and output, method definitions, and more. 9 steps

Course Fee:
USD 25

Course Type:


Course Status:



1 - 4 hours / week

This course is listed under Open Source , Development & Implementations and Data & Information Management Community

Related Posts:

Attended this course?

Back to Top

Awards & Accolades for MyTechLogy
Winner of
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url