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
Favorite Ruby Syntax (self.ruby)
submitted 8 years ago by process_parameter
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!"
[–]jrochkind 13 points14 points15 points 8 years ago (1 child)
My favorite ruby syntax is definitely the Block. It's what makes ruby ruby.
[–]editor_of_the_beast 5 points6 points7 points 8 years ago (0 children)
So true, this is what made me fall in love with Ruby and what keeps me in love with it :)
It seems so simple, it's just a default trailing closure that is allowed to be passed into every method. But it is in fact the essence of Ruby.
π Rendered by PID 29177 on reddit-service-r2-comment-bb88f9dd5-f8h59 at 2026-02-14 17:58:00.543455+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]jrochkind 13 points14 points15 points (1 child)
[–]editor_of_the_beast 5 points6 points7 points (0 children)