Ruby & Ruby on Rails for Beginners / Chapter 1 — Ruby Syntax (lessons 1–8) / Lesson 1

What Is Ruby? (Everything Is an Object)

Time needed: about 2 min (estimate)

☆ Read later

You can try the opening of this lesson without an account.

Why look at Ruby before Rails

Rails is a collection of libraries written in Ruby.

Both has_many :comments and validates :title, presence: true are ordinary Ruby method calls, not magic.

If you read Rails without knowing how Ruby is written, you can't tell where the language ends and Rails begins.

The 8 lessons in this chapter get Ruby out of the way first.

Terminal

$ ruby --version ruby 3.4.10 (2026-06-30 revision 2b0b7728dc) +PRISM [arm64-darwin27] $ gem --version 3.6.9

Everything is an object

Create a free account to keep reading

With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.

Report a problem with this lesson

Log in to send a report.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.