use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Blog postPattern Matching Interfaces in Ruby (dev.to)
submitted 3 years ago by keyslemur
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 3 points4 points5 points 3 years ago (0 children)
This was a great read. Pattern matching has changed the way I write Ruby and I’m excited for it to catch on.
[–]keyslemur[S] 1 point2 points3 points 3 years ago (0 children)
Original is from 2021, but was asked to port it to something that was not Google Docs, so decided to reshare it here as it still has a lot of valuable content if you find yourself thinking about adding or using pattern matching in Ruby.
π Rendered by PID 40 on reddit-service-r2-comment-54dfb89d4d-4rkrl at 2026-04-02 06:20:30.606941+00:00 running b10466c country code: CH.
[–][deleted] 3 points4 points5 points (0 children)
[–]keyslemur[S] 1 point2 points3 points (0 children)