On September 1, 2022, GitHub Learning Lab will shut down.
Read more on the GitHub blog and check out GitHub Skills for courses backed by GitHub Actions.
See an up-to-date option for this page.

Introduction to Ruby

Learn the basics of Ruby. Make a hello world program, then include if/else statements

Start free course Join 919 others!

Ruby Course Repository

This is the code that runs the intro to Ruby course on GitHub Learning Lab

Steps to complete this course 7
  1. Set up your environment

    Introduction to Ruby

  2. Set-up

    Install and setup your developer environment

  3. Run a 'hello world' program

    Write a basic hello world program in Ruby

  4. Running a Ruby Program

    Learn how to run our hello world program

  5. Using Ruby Methods

    Ruby comes with many pre-built methods

  6. Using If/Else Statements

    If Statements give you control of how to respond if a condition is true

  7. Else Statements

    Else statements give you a default reponse if a condition is false

Share Introduction to Ruby
Average time to complete

67 minutes


All public courses on Learning Lab are free.

Latest release

Users who took this course also took

What is GitHub Learning Lab?

Learn new skills by completing fun, realistic projects in your very own GitHub repository.

Ready to start learning?

Start Introduction to Ruby