This Course will be retired on September 23, 2015. We recommend starting Ruby Basics for newer, up-to-date content.


Ruby Foundations

Learn the fundamentals to become a Ruby and Rails developer. You'll learn things like what Ruby is, how to write object oriented Ruby, classes and modules, programming structures and types, and more. There are no requirements for this course other than a web browser and willingness to learn.

Ruby Foundations

14 Achievements

Ruby Basics

Ruby Basics

The Ruby Basics badge will get you up and running with Ruby and have you writing your first Ruby programs in no time!

0 of 4 Steps Complete
Objects, Classes, and Variables

Objects, Classes, and Variables

The Objects, Classes, and Variables badge gets you familiar with the Ruby language. You'll learn about how to tell the Ruby interpreter what to do, set variables, and create and instantiate classes.

0 of 5 Steps Complete
Ruby Strings


The Strings badge teaches you how to create and work with strings, learn about special characters and escape, and learn about common and useful methods available when working with strings.

0 of 6 Steps Complete
Ruby Numbers


The Ruby Numbers badge will get you comfortable working with numbers in Ruby. This badge teaches you about integers, floating point numbers, math, and more. You'll learn how to create and work with numbers, compare numbers, and work with currency.

0 of 8 Steps Complete
Ruby Arrays


An array is container for different kinds data. The arrays badge will teach you what arrays are and get you comfortable with creating and working with arrays.

Ruby Hashes


A hash is a data structure which is a collection of key and value pairs. The hashes badge will get you comfortable creating, querying, and working with hashes.

0 of 6 Steps Complete
Ruby Methods


A method is a set of expressions that return a value. Learning how to create your own methods is the basis for almost all programming you'll do in Ruby. The Ruby Methods badge teaches you all about creating and using methods.

0 of 4 Steps Complete
Ruby Loops


A loop is a series of statements that can be repeated several times. The Ruby language has several different kinds of loops available when writing programs. The loops badge walks you through creating loops and using different kinds of loops in your code.

0 of 5 Steps Complete
Ruby Blocks


Blocks are a special kind of syntax in Ruby. A block is a way of grouping statements together that is executed when Ruby encounters the method. The Ruby Blocks badge teaches you how to create, use, and work with blocks in your Ruby programs.

0 of 5 Steps Complete
Ruby Procs & Lambdas

Procs & Lambdas

Procs & Lambdas are blocks of code that are assigned to variables. In this way, procs and lambdas can be passed around to different methods and the scope can change. The Procs & Lambdas badge teaches you how to create and work with procs and lambdas as well as the differences between them.

0 of 3 Steps Complete
Ruby Modules


Modules serve as containers for data, classes, methods, or even other modules. Modules are very useful for sharing behavior between your classes and are frequently used for namespacing classes and constants in your programs.

0 of 4 Steps Complete
Ruby Core

Ruby Core

The core collection of classes and modules helps out when coding Ruby programs. The Ruby Core badge walks you through some of the classes and modules available.

0 of 7 Steps Complete
Standard Library

Ruby Standard Library

The Ruby standard library is packaged with every Ruby installation. The standard library contains modules and classes that are commonly used for writing programs. This includes functionality for testing, configuration, option parsing, benchmarking, and more. The Ruby Standard Library badge walks through some of the modules and classes available in the standard library.

0 of 9 Steps Complete
Ruby Testing


Automated testing is the process of writing code that tests different behavior of your programs. The Ruby standard library includes a library called MiniTest which can be used to write automated tests. The Ruby Testing Badge walks through using the MiniTest library and introduces the process of test driven development.

0 of 4 Steps Complete


  • Jason Seifer

    When not fighting web crime, Jason Seifer is a teacher at Treehouse. He's passionate about the web and programming. You can find Jason on Twitter at @jseifer and on his personal blog at

Download videos

You have to sign up for Treehouse in order to download course videos.

Sign up