Ruby Primer is a set of interactive lessons that run in a text console. It was originally based on the excellent primer maintained by C42 Engineering at RubyMonk.com, but that site was taken down in 2025. The lessons have been preserved here.
- Language: Ruby 3.2+
- Dependencies:
- Bundler for gem management
- RSpec for testing
- Ruby-Figlet for ASCII art
- Colorize for colored output
- Image Generation:
- Pandoc
- XeLaTeX
- ImageMagick
- IBM Plex Serif Light font
- Terminal Image Display:
viufor inline images in Kitty, built-in support for iTerm2
- iTerm2 on macOS
- Kitty on macOS or Linux
- XeLaTeX (with IBM Plex Serif Light font)
- ImageMagick
- Clone this repository
- Run
./install.shto install dependencies and set up the environment. - Run
rpto start the interactive Ruby lessons. - Follow the on-screen instructions to navigate lessons and run examples/tests.