Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn to Code with Ruby
Bestseller
Rating: 4.7 out of 5(6,651 ratings)
82,829 students

Learn to Code with Ruby

Learn to program in the Ruby programming language. Newly updated with support for Ruby 3.2. Complete beginners welcome!
Created byBoris Paskhaver
Last updated 1/2026
English

What you'll learn

  • Learn to program in the Ruby programming language
  • Master common Ruby objects like Strings, Arrays, Hashes, and more
  • Solve popular coding challenges and algorithms with Ruby
  • Dive into object-oriented programming including classes and more

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

33 sections363 lectures42h 50m total length
  • Welcome to Ruby [SLIDES]8:09

    Welcome to Learn to Code with Ruby! In this lesson, we introduce the language, its history, and some of its advantages/disadvantages relative to other languages.

  • Object-Oriented Programming [SLIDES]5:41

    Learn about object-oriented programming (OOP), a paradigm that views a software program as a collection of objects that interact with one another. Practice applying OOP principles to real-world objects.

  • Ruby Installation Instructions0:55

    In this lesson, we discuss how to install the latest version of Ruby.

  • macOS - Access and Work with the Terminal9:46

    In this lesson, we access the Terminal application on a Mac, which is used to issue text commands to the operating system. We explore popular commands like pwd, ls, and cd to traverse directories and explore their contents.

  • macOS - Install XCode Command Line Tools3:22

    In this lesson, we'll install the XCode Command Line Tools, a technical prerequisite for installing Ruby on a macOS computer.

  • macOS - Install Homebrew3:05

    In this listen, we install Homebrew, a software package manager for macOS. We run Homebrew from our Terminal and use it to download/install applications.

  • macOS - Install rbenv7:39

    In this lesson, we install the rbenv Ruby version manager, which enables us to download and install multiple versions of Ruby on the same machine.

  • macOS - Install Ruby6:38

    In this lesson, we use rbenv to install Ruby on our macOS operating systems. We target the latest version of Ruby at the time of installation.

  • macOS - Install VSCode Text Editor4:42

    In this lesson, we download Visual Studio Code, the free text editor in which we'll be writing our Ruby code throughout the course. We also discuss the benefits of using such a tool.

  • Windows - Access and Work with PowerShell9:26

    In this lesson, we introduce the PowerShell command-line application and some common commands including ls for listing files/folders and cd for directory navigation.

  • Windows - Figure Out if System is 32-bit or 64-bit1:19

    In this lesson, we use our system settings to determine if our Windows version is 32-bit or 64-bit.

  • Windows - Install Ruby6:36

    In this lesson, we walk through the process of installing Ruby on a Windows machine. We also use Powershell to confirm the language was installed properly.

  • Windows - Install VSCode Text Editor3:39

    In this lesson, we download Atom, the text editor in which we'll be writing our code throughout the course. We also discuss the benefits of using such a tool.

  • Install VSCode Extensions4:51

    Download and install the Ruby and Code Runner VSCode extensions for the Visual Studio Code text editor.

  • Add VSCode to Your System PATH1:05

    In this lesson, we'll add VSCode and its corresponding Terminal command, code, to our system PATH, which enables the Terminal to locate the software from any directory on our computer.

  • Download Course Materials1:56

    Download the course materials for the course in a single zip file.

  • Write First Ruby File and Run with Code Runner8:55

    In this lesson, we write our first Ruby program, which outputs the text Hello World to the screen.

  • Write First Ruby File and Run with Terminal or PowerShell4:31

    In this lesson, we learn how to run our Ruby file using the ruby program from our Terminal.

  • Interactive Ruby (IRB)5:04

    In this lesson, we dive into Interactive Ruby (IRB), a REPL (Read Evaluate Print Loop) program for playing around with the Ruby programming language.

  • Section Review [SLIDES]3:52

    In this optional lesson, we'll review the concepts introduced in this course section including:

    • Installing Ruby

    • Running a Ruby file from then Command Line

    • Running a Ruby file with Code Runner

Requirements

  • Basic text editing skills
  • Basic computer skills (web browsing, app installation, file navigation)

Description

Welcome to the most comprehensive Ruby course available on Udemy! An in-depth overview of coding with Ruby, a popular programming language renowned for its simplicity and elegance. Whether you've never written a line of code before or are looking to learn a brand new language, this course covers all bases!

Learn to Code with Ruby offers more than 40+ hours of video tutorials, 250+ lectures, and dozens of quizzes and coding exercises to test your knowledge as you proceed through the course.

Lessons include:

  • Installation and configuration for both Mac OS and Windows systems

  • Common programming concepts (variables, arithmetic, output)

  • Objects and methods

  • Strings

  • Numbers

  • Booleans

  • Methods and Conditionals

  • Ranges

  • Arrays

  • Hashes

  • Blocks, Procs, and Lambdas

  • Dates and times

  • File Input and Output

  • Regular Expression

  • Classes, Modules, and Inheritance

and more!

Ruby is a language released by Yukihiro Matsumoto in 1995 that bills itself as "a programmer's best friend". Every aspect of Ruby is designed to make programming easier for the developer. There is no better first language if you're interested in learning how to program.

Ruby also serves as the foundation for Ruby on Rails, a popular web framework that powers over 1.2 million websites worldwide. The course offers an extensive introduction to the base language you'll need to know if you intend to tackle web development in the future.

Check out the sample videos below to get a taste of what the course has to offer!

So if you're ready to commit yourself, if you're eager to expand your knowledge of programming, if you're ready to discover what makes this elegant language so loved by developers, you are ready to Learn to Code with Ruby!

Thanks for checking out the course!

Who this course is for:

  • Beginning programmers who want to start with an easy, human-friendly language
  • Intermediate coders who are interested in exploring the Ruby language in greater depth
  • Web development folk curious about the foundation of Ruby on Rails