rubyguides

RubyGuides

Learn Ruby

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

54 guides · 335 reference entries · 62 tutorials

Latest guides

View all →
  1. Ruby WebSockets: Building Real-Time Features with ActionCable rubyguides.dev/guides

    Ruby WebSockets made practical: learn websocket-ruby, ActionCable, and async-websocket for real-time chat, notifications, and live dashboards across any stack.

  2. 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.

  3. 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.

  4. 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.

  5. 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
Ruby keyword: until Keywords Ruby's until keyword loops while a condition is false. Block form, modifier form, begin/end variant, return value, and break/next/redo interaction.
Ruby keyword: while Keywords Ruby's while keyword loops while a condition stays true. Syntax, modifier form, begin/end variant, return value, and break/next/redo interaction.
Ruby keyword: when Keywords Ruby when clause inside case: === matching, multiple patterns per when, then/else, regex/range/module/proc matchers, and how it differs from if.
Ruby keyword: case Keywords Ruby case expression: subject form vs no-subject form, === matching, multiple when values, then/else, return value, common gotchas.
Ruby keyword: if Keywords Ruby if expression: syntax for if, elsif, else, ternary, and modifier-if forms, with truthy rules and return value behavior.
Ruby keyword: unless Keywords Ruby unless expression: block form, modifier form, else rules, truthy/falsy rules, return value, and common parser gotchas.

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 docs teach better when examples stay close to objects, messages, and visible return values, with short code that keeps the reader on track.