Skip to content
No results
  • About Ruby-Doc Learn
  • Advertising and Sponsorship Policy
  • All Ruby Tutorials
  • Author and Reviewer Standards
  • Contact
  • Contact and Report an Error
  • Corrections Policy
  • Editorial Policy
  • Gavin Sinclair
  • James Britt
  • Jim Freeze
  • Practical Ruby Tutorials and Developer Guides
Ruby-Doc Learn
  • Home
  • Current
  • Downloads
  • Learn
  • Contact
  • About Ruby-Doc Learn
Ruby-Doc LearnRuby-Doc Learn
  • Ruby tips

Ruby it block parameter: Examples and Common Traps

Ruby it block parameter example: named and implicit doubling blocks turn 3, 5 and 8 into 6, 10 and 16

Learn when Ruby's implicit it parameter helps, how local names and nested blocks affect it, and when a named parameter is clearer.

  • James Britt
  • November 6, 2026
  • Ruby tips

Ruby File Birthtime Linux: Read Creation Time Safely

Ruby file birthtime Linux decision diagram: check the API, read creation time, or report unavailable

Read file creation timestamps on Linux with Ruby, understand the Ruby 4.0 API change and handle unavailable metadata without inventing a date.

  • James Britt
  • November 5, 2026
  • Programming

Ruby 4.0 CGI LoadError: Fix the Missing Library

Ruby 4.0 CGI LoadError decision map showing cgi/escape for helpers, the cgi gem for full APIs and runtime checks for deployment failures

Find out whether a Ruby 4.0 CGI loading error needs the full cgi gem, the smaller escape library or a correction to the runtime and bundle.

  • James Britt
  • November 5, 2026
  • Ruby tips

Ruby Set 4.0: Core Changes and Practical Examples

Ruby Set 4.0 example showing unique customer IDs, union, intersection and difference

Learn what changed when Set became a Ruby 4.0 core class, with tested membership examples, set operations, migration checks and an output exercise.

  • James Britt
  • November 5, 2026
  • Ruby tips

Ruby Array Rfind: Find the Last Matching Element

Ruby array rfind diagram tracing 10, 8 and 3 from the right and returning the last odd element, 3, without reordering the array

Search an array from the right with Ruby 4.0 rfind, handle false and nil correctly, and choose between an element, an index and all matches.

  • James Britt
  • November 5, 2026
  • Ruby tips

Ruby String Strip Characters: Trim the Right Ends

Ruby string strip characters comparison showing edge trimming, preserved interior brackets, exact-prefix removal and deletion across a whole string

Choose between whitespace trimming, Ruby 4.0 character selectors, exact-prefix removal and whole-string deletion, with tested boundary examples.

  • James Britt
  • November 5, 2026
  • Ruby tips

Ruby Ractor Port: Who Can Send, Receive and Close?

Ruby Ractor port diagram showing who sends, receives and closes the reply mailbox

Trace a parcel quote from worker to coordinator in Ruby 4.0. A worked example shows which messages survive closing a Ractor port and when a receive raises an error.

  • James Britt
  • November 4, 2026
  • Ruby tips

Upgrade Ruby 3.4 to 4.0: A Practical Migration Checklist

Checklist to upgrade Ruby 3.4 to 4.0: record the baseline, build separately, verify the application and release with a return path

Move an existing Ruby application from 3.4 to 4.0 with focused dependency checks, tested examples, a staging plan and a clear return path.

  • James Britt
  • November 2, 2026
  • Ruby tips

Ruby 4.0 New Features: What Changed and What to Try

Ruby 4.0 new features map covering array and string helpers, core Set, experimental Ruby Box and ZJIT, and Ractor ports

A practical tour of Ruby 4.0's collection helpers, core classes and experimental runtime features, with small tested examples and checks for existing projects.

  • James Britt
  • November 2, 2026
  • Ruby tips

Ruby Programming Ebooks: Free and Paid Reading Paths

Ruby programming ebooks infographic: match your level, check editions, compare formats and practise with examples.

Choose Ruby ebooks by experience level, edition and format, with free reading options, a practical exercise and an expandable reading guide.

  • James Britt
  • October 30, 2026
Prev
1 2 3 4 5 6 … 9
Next
  • About Ruby-Doc Learn
  • Editorial Policy
  • Author and Reviewer Standards
  • Corrections Policy
  • Advertising and Sponsorship Policy
  • Contact and Report an Error

Copyright © 2026 Ruby-Doc.org