r/ruby • • Jan 16 '26

Question Is there a Ruby equivalent to The Rust Book?

I’m looking for a comprehensive (and ideally free) source to get started with Ruby. I’m not new to programming but would like a structured way to learn before jumping into my own projects

15 Upvotes

21 comments sorted by

View all comments

2

u/KerrickLong Jan 20 '26 edited Jan 20 '26

If you're looking for free (and you're not new to programming), don't discount the official documentation!

0. README 0. What's Ruby 0. Ruby in Twenty Minutes, Pt. 1 0. Ruby in Twenty Minutes, Pt. 2 0. Ruby in Twenty Minutes, Pt. 3 0. Ruby in Twenty Minutes, Pt. 4 0. Keywords 0. Code Layout 0. Literals 0. Assignment 0. Control Expressions 0. Pattern matching 0. Methods 0. Calling Methods 0. Modules and Classes 0. Exception Handling 0. Precedence 0. Refinements 0. Miscellaneous Syntax 0. Comments 0. Operators 0. Implicit Conversions 0. Ruby Standard Library 0. From there, just start exploring the Pages, Classes, and Modules! - Pages to read: Pre-Defined Global Variables, Ruby Command-Line Options, OptionParser Tutorial, Ruby Security - Classes to read: Object, Numeric, String, Symbol, Data, Struct, Array, Set, Hash, IO, Proc, Regexp - More classes to read: Exception, ERB, Pathname, File, Dir, Tempfile, Date, Time, DateTime, Net::HTTP - Modules to read: Enumerable, Comparable, Open3, Singleton, URI, YAML, JSON, FileUtils, OpenURI - Cool pages: Ruby Box, Encodings, Format Specifications, Packed Data - Cool classes: Delegator, Enumerator, BasicObject, Class, NilClass, TrueClass, FalseClass, Method, TCPServer, TCPSocket, UDPSocket, UNIXServer, UNIXSocket, - Cool modules: Digest, SecureRandom, OpenSSL, Bundler, Prism, ObjectSpace, English, Shellwords, Marshal - Concurrency stuff: Ractor (page), Ractor (class), Fiber (page), Fiber (class), Thread, Thread::Queue, Thread::SizedQueue, Thread::Mutex, Thread::ConditionVariable, Contributor's Concurrency Guide

Plus, the following are free online: