Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1 KB

File metadata and controls

40 lines (23 loc) · 1 KB

Welcome to the learning_ruby mini-course

Quick start

  1. Install Ruby (if you don't have it):

    • On Debian/Ubuntu:

      sudo apt update sudo apt install ruby-full

    • On macOS (homebrew):

      brew install ruby

  2. From this folder, run the lesson runner:

    ruby test.rb basics

Replace basics with control_flow or collections to run other lessons.

Run the automated test (requires minitest, included with stdlib):

ruby -I./tests tests/test_basics.rb

Files added

  • lessons/01_basics.rb — language basics and small API used by tests
  • lessons/02_control_flow.rb — control flow examples
  • lessons/03_collections.rb — arrays, hashes, and iterators
  • tests/test_basics.rb — a tiny minitest that verifies the basics
  • test.rb — lesson runner / quick demo

How I verified

  • These are plain Ruby files that should run with a standard Ruby interpreter.

Next steps

  • Tell me what you want to focus on (web, tests, metaprogramming, Rails, performance), and I'll prepare the next lesson.