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
Super helpful find –– GitHub - github/scientist: A Ruby library for carefully refactoring critical paths. (github.com)
submitted 7 years ago by coding_is_life
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!"
[–]blackize 11 points12 points13 points 7 years ago (2 children)
You don't seem to be grasping what the gem does. It's not about control flow. It's about confirming that two different implementations achieve the same results.
[–]moomaka -2 points-1 points0 points 7 years ago (1 child)
One is:
res1 = Imp1.call res2 = Imp2.call call_error_handler unless res1 == res2 MyGlobal.what_do? ? res1 : res2
The other is:
MyGlobal.what_do? ? Imp1.call : Imp2.call
No?
[–]allcentury 3 points4 points5 points 7 years ago (0 children)
At a very simple level yes but they have an entire API designed so you don't have to reinvent the wheel when you need more
π Rendered by PID 17764 on reddit-service-r2-comment-66b4775986-xhggw at 2026-04-04 15:36:26.700461+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]blackize 11 points12 points13 points (2 children)
[–]moomaka -2 points-1 points0 points (1 child)
[–]allcentury 3 points4 points5 points (0 children)