Documentation (original) (raw)
Guides, tutorials, and reference material to help you learn more about Ruby
Installing Ruby
Although you can easily try Ruby in your browser, you can also read the installation guide for help on installing Ruby.
Official Ruby Documentation
docs.ruby-lang.org/en: List of documentation for all Ruby versions released after 2.1.
docs.ruby-lang.org/en/3.4: Documentation for Ruby 3.4.
docs.ruby-lang.org/en/master: Documentation for Ruby’s master branch.
C Extension Guide: In-depth guide for creating C extensions for Ruby.
Getting Started
You can try Ruby right in your browser.
A wonderful little tutorial by Chris Pine for programming newbies. If you don’t know how to program, start here.
A small Ruby tutorial that should take no more than 20 minutes to complete.
An open source full stack curriculum
120 exercises with automatic analysis and personal mentoring.
Online code bootcamp with a variety of topics.
Manuals / Books
Beginner
The seminal work on Ruby in English. Recently updated to Ruby 3.3.
A tutorial that begins with your first Ruby program and takes you all the way to sophisticated topics like reflection, threading, and recursion.
Intermediate
A programmer’s tale about how to write object-oriented code.
Expert
Explains metaprogramming in a down-to-earth style.
An illustrated guide to Ruby internals.
Community Documentation
These documentation sites are maintained by the Ruby community.
The one-stop web site for reference documentation about Ruby gems and GitHub-hosted Ruby projects.
Easily find and browse Ruby classes, modules, and methods.
Online API documentation
Online API documentation
The Ruby quick reference
A full language reference + detailed language changelog.
Style Guides
RuboCop’s Ruby style guide
Automated enforcement of their style guide.
Shopify’s Ruby style guide
Gitlab’s Ruby style guide
Airbnb’s Ruby style guide
W3’s Ruby style guide
Tools
The interactive Ruby Read-Eval-Print-Loop (REPL)
An alternative Ruby REPL
A make-like build utility for Ruby.
(Ruby Information) is the Ruby command-line utility that gives fast and easy on-line access to Ruby documentation.
Type Signature for Ruby
An experimental type-level Ruby interpreter for testing and understanding Ruby code.
Static type checker for Ruby.
Editors and IDEs
For coding in Ruby, you can use the default editor of your operating system. By the way, to be more effective in coding, it is worth choosing a source code editor with basic Ruby support (e.g. syntax-highlighting, file browsing) or an integrated development environment with advanced features (e.g. code completion, refactoring, testing support).
Here is a list of popular editors used by Rubyists, broken up by learning curve:
- Days
- Sublime Text (paid)
- Visual Studio Code
- Zed
- Months
- RubyMine (paid)
- “Years” (as in, you’ll spend years still learning things about it)
All of these editors support the Language Server Protocol (LSP), either by default or through their LSP plugins. Shopify’sruby-lsp is one of the most popular language servers for Ruby and supports all of the above editors.
Older Reading / Resources
These links were more prominent but haven’t been updated in ages.
The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. We also teach you culture.
A free on-line book designed to provide a concise and easy to follow guide to learning Ruby.
Why’s (Poignant) Guide to Ruby
An unconventional but interesting book that will teach you Ruby through stories, wit, and comics. Originally created by why the lucky stiff, this guide remains a classic for Ruby learners.
A very good set of exercises with explanations that guide you from the absolute basics of Ruby all the way to OOP and web development.
The seminal work on Ruby in English, this first edition of thePragmatic Programmers’ book is available for free online.
A free online manual with beginner and intermediate content plus a thorough language reference.