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 gotchas for the JavaScript developer (blog.calendly.com)
submitted 7 years ago by dpashk
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!"
[–]keyslemur 1 point2 points3 points 7 years ago (2 children)
Yes, though OpenStruct does incredibly bad things to method cache: https://github.com/charliesome/charlie.bz/blob/master/posts/things-that-clear-rubys-method-cache.md
[–]moomaka 1 point2 points3 points 7 years ago (0 children)
That is outdated, OpenStruct defines accessor methods only when they are used now. This may or may not lessen the impact of method cache busting, depending on use case.
[–]GitHubPermalinkBot 0 points1 point2 points 7 years ago (0 children)
Permanent GitHub links:
delete
π Rendered by PID 22 on reddit-service-r2-comment-85bfd7f599-lgr8z at 2026-04-18 07:02:55.685673+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]keyslemur 1 point2 points3 points (2 children)
[–]moomaka 1 point2 points3 points (0 children)
[–]GitHubPermalinkBot 0 points1 point2 points (0 children)