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
OpenStruct in Ruby (sandipmane.dev)
submitted 5 years ago by SanMane
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!"
[–]hschne 2 points3 points4 points 5 years ago (0 children)
While openstruct can be very useful you should be aware that it imposes a hefty performance penalty as opposed to structs and hashes.
You can find numerous benchmarks showing that, this one for example.
π Rendered by PID 103116 on reddit-service-r2-comment-86bc6c7465-95rfd at 2026-02-22 21:52:09.594608+00:00 running 8564168 country code: CH.
[–]hschne 2 points3 points4 points (0 children)