Build real-time features in Ruby with three WebSocket approaches: websocket-ruby for pure Ruby, ActionCable for Rails, and async-websocket.
Latest guides
View all →- WebSockets in Ruby rubyguides.dev/guides
- 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.
- 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.
- 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.
- 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 →Latest articles
View all →- 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.