rubyguides

RubyGuides

Learn Ruby

In-depth guides, tutorials, and a complete reference for Ruby developers at every level.

54 guides · 301 reference entries · 63 tutorials

Latest guides

View all →
  1. WebSockets in Ruby rubyguides.dev/guides

    Build real-time features in Ruby with three WebSocket approaches: websocket-ruby for pure Ruby, ActionCable for Rails, and async-websocket.

  2. The Command Pattern in Ruby rubyguides.dev/guides

    Implement the command pattern in Ruby — encapsulate requests as objects, enable undo/redo, queue operations, and build extensible CLI apps.

  3. The Builder Pattern in Ruby rubyguides.dev/guides

    Learn how to implement the builder pattern in Ruby for cleaner, step-by-step object construction with fluent interfaces and nested structures.

  4. Ruby Array Methods: The Practical Guide rubyguides.dev/guides

    Learn the 7 Ruby array methods you'll use every day—map, select, reduce, find, sort_by, uniq, and flatten—with practical patterns and real examples.

  5. ActiveSupport Outside of Rails rubyguides.dev/guides

    A practical guide to using ActiveSupport core extensions, time utilities, and number helpers in plain Ruby scripts and gems

Reference

View all →
Name Section Description
Array#each_index Array Methods Learn how Ruby Array#each_index yields positions instead of elements, when to use it, and how it compares with each_with_index.
String#clone String Methods Create a shallow copy of a string, preserving its frozen status and singleton methods.
String#replace String Methods Replaces a string's contents in place, returning self and preserving object identity.
String#include? String Methods Check if a string contains a given substring. Returns true or false based on whether the substring is found.
String#capitalize String Methods Returns a copy of the string with its first character uppercased and the rest lowercased.
String#swapcase String Methods Returns a new string with the case of each character swapped — uppercase becomes lowercase and vice versa.

Tutorial series

View all →
  1. Ruby Fundamentals
  2. Rails Basics
  3. Ruby Concurrency

Latest articles

View all →
  1. Why Ruby docs benefit from small object-focused examples rubyguides.dev/articles

    Ruby documentation teaches better when examples stay close to objects, messages, and visible return values.