Your First Ruby Program3:14 with Jay McGavren
In this video, we'll show you how to run your first Ruby program right in your browser, using Treehouse Workspaces.
Here's the code for our first program. It's just one line:
puts "Hello, Ruby!"
Here's how to run it:
- Launching the Treehouse Workspace on this video's page.
- Click in the Console area at the bottom. You'll know it's been activated if a blinking cursor appears down there.
ruby, a space, and the name of our program file,
hello.rb. Then hit Enter.
- Ruby will run our program, and print out the message from our code.
You need to sign up for Treehouse in order to download course files.Sign up