0Pricing
Ruby Academy · Lesson

Your First Look at Ruby Code

Create and run your first Ruby script using interactive and file-based methods.

Your First Look at Ruby Code is a free Ruby Academy lesson on CoddyKit — lesson 3 of 3. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ruby Academy learning path, one of 3 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Time to read code

Ready to actually look at Ruby code? Don't worry, we'll keep it tiny and clear. 👀

Meet puts

The word puts simply tells Ruby to print something on the screen. That's it, no magic.

Your first line

Here it is in action. Run it and watch Ruby say hello back to you!

puts "Hello!"

What are quotes for?

The quotes wrap your text. Anything inside the quotes is words for the computer to show as-is.

Storing a value

You can label a value with a name. Think of it like a sticky note on a box you'll use later.

See a name in action

Here we save a name, then print it. Notice how readable each line stays.

name = "Sam"
puts name

Ruby reads top to bottom

Ruby runs your lines in order, top to bottom, just like reading a list of steps. Calm and predictable.

No clutter needed

Notice there's no weird punctuation cluttering things. Ruby keeps lines clean so you can focus.

You can read Ruby

See? You just read real Ruby and understood it. That's a genuine coding skill, and you have it. 🎉

Course complete!

Amazing work finishing your first Ruby course! You know what it is, why it's loved, and how it reads. Onward! 🚀

Quick Check

Last one, you've got this. What does puts do in Ruby?

Frequently asked questions

Is the “Your First Look at Ruby Code” lesson free?

Yes — the full text of “Your First Look at Ruby Code” is free to read here on the web, and the Ruby Academy course includes 3 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ruby Academy course, upgrade to CoddyKit PRO.

What will I learn in “Your First Look at Ruby Code”?

Create and run your first Ruby script using interactive and file-based methods. You practise Ruby Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Ruby Academy?

No prior experience is required. Ruby Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 3, so you can start here or from the beginning and move at your own pace.

How long does the “Your First Look at Ruby Code” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Ruby Academy lesson?

Yes. Every Ruby Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What is Ruby?
  2. Why Developers Love Ruby
  3. Your First Look at Ruby Code
← Back to Ruby Academy