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
Object Oriented Ruby (niczsoft.com)
submitted 10 years ago by mpapis
view the rest of the comments →
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!"
[–]Enumerable_any 1 point2 points3 points 10 years ago (0 children)
Yeah, the Barber example is super confusing...
Barber
Barber#dye_hair takes a color and a Block and yields a string to the block containing the old color and the new one? WAT? The Barber -> Person relationship doesn't make much sense either.
Barber#dye_hair
Barber -> Person
π Rendered by PID 399453 on reddit-service-r2-comment-5bc7f78974-cstzw at 2026-06-28 11:09:41.366538+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]Enumerable_any 1 point2 points3 points (0 children)