Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages