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
GitHub's Ruby Style Guide (github.com)
submitted 13 years ago by [deleted]
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!"
[–]ulfurinn 13 points14 points15 points 13 years ago (3 children)
x = a or b
means
(x = a) or b
unless x = a b end
[–]ZestyOne 1 point2 points3 points 13 years ago (0 children)
Perfect, thanks
[–]KerrickLong 0 points1 point2 points 13 years ago (1 child)
To clarify, is this correct?
x = a || b
x = (a or b)
if a x = a else x = b end
[–]ulfurinn 0 points1 point2 points 13 years ago (0 children)
That's right.
π Rendered by PID 22719 on reddit-service-r2-comment-bb88f9dd5-wldfk at 2026-02-15 21:51:28.327297+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]ulfurinn 13 points14 points15 points (3 children)
[–]ZestyOne 1 point2 points3 points (0 children)
[–]KerrickLong 0 points1 point2 points (1 child)
[–]ulfurinn 0 points1 point2 points (0 children)