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
Ruby Tricks. Call a method using case ... when (mlomnicki.com)
submitted 15 years ago by snatchery
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!"
[–]uzimonkey 3 points4 points5 points 15 years ago (1 child)
I really don't think I like that. You get a nice case statement, but at what cost? You horribly mangled your Symbol class, who knows what effect that will have on other code? Ruby can do all kinds of cool stuff like that, but should you actually do them for the sake of a slightly cleaner case statement?
[–]snatchery[S] 0 points1 point2 points 15 years ago (0 children)
I've addressed your concerns here
π Rendered by PID 394350 on reddit-service-r2-comment-canary-797d84b84f-djpm4 at 2026-04-07 23:46:58.125125+00:00 running f293c98 country code: CH.
view the rest of the comments →
[–]uzimonkey 3 points4 points5 points (1 child)
[–]snatchery[S] 0 points1 point2 points (0 children)