Welcome to the learning_ruby mini-course
Quick start
-
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
-
-
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 testslessons/02_control_flow.rb— control flow exampleslessons/03_collections.rb— arrays, hashes, and iteratorstests/test_basics.rb— a tiny minitest that verifies the basicstest.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.