Ruby WebSockets made practical: learn websocket-ruby, ActionCable, and async-websocket for real-time chat, notifications, and live dashboards across any stack.
Latest guides
View all →- Ruby WebSockets: Building Real-Time Features with ActionCable rubyguides.dev/guides
- The Builder Pattern in Ruby: Step-by-Step Object Assembly rubyguides.dev/guides
Learn to implement the builder pattern in Ruby for cleaner step-by-step object construction with fluent interfaces, nested structures, and inline validation.
- The Command Pattern in Ruby: Encapsulating Actions as Reusable Objects rubyguides.dev/guides
Implement the command pattern in Ruby — encapsulate requests as objects, enable undo/redo, queue operations, and build extensible CLI apps.
- Ruby array methods: map, select, reduce, and more rubyguides.dev/guides
Learn the 7 Ruby array methods you will use every day: map, select, reduce, find, sort_by, uniq, and flatten. Practical patterns and real examples included.
- ActiveSupport Outside of Rails rubyguides.dev/guides
Use ActiveSupport outside of Rails: cherry-pick core extensions, time utilities, and number helpers for plain Ruby scripts and gems without the full framework
Reference
View all →| Name | Section | Description |
|---|---|---|
Array#min_by: pick the smallest element by a derived key | Array Methods | Ruby's array min_by method picks the element with the smallest derived key, with the n-argument and Enumerator forms covered. |
Array#chunk_while | Array Methods | Use Ruby's array chunk_while to group adjacent elements into variable-size chunks. The block returns true to keep neighbors together, false to split. |
Array#each_with_object | Array Methods | Build a hash, array, or other mutable accumulator while iterating an array. The memo you pass in is returned intact at the end. |
Array#repeated_permutation | Array Methods | Array#repeated_permutation yields every ordered length-n tuple with replacement, or returns an Enumerator. Covers the size formula and gotchas. |
Array#repeated_combination: Multiset Combinations in Ruby | Array Methods | Array#repeated_combination enumerates multiset combinations in Ruby. Includes the block form, the lazy Enumerator, the counting formula, and edge cases. |
Array#pack | Array Methods | Format an array's elements into a binary string using a template of single-letter directives for integers, floats, and strings. |
Tutorial series
View all →Latest articles
View all →- Why Ruby docs benefit from small object-focused examples rubyguides.dev/articles
Ruby docs teach better when examples stay close to objects, messages, and visible return values, with short code that keeps the reader on track.