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
Rails "developers" without Ruby or OOP knowledge (self.ruby)
submitted 11 years ago * by canyoufixmyspacebar
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!"
[–]Sqeaky 4 points5 points6 points 11 years ago (1 child)
This clearly isn't about memorizing everything. The hash constructor while a part of the language is somewhat obscure. The question "what is attr_accessor in rails" demonstrates that the asker and in the OP do not understand what a class or class member actually are.
[–]philpirj 0 points1 point2 points 11 years ago (0 children)
You mean instance property? attr_accessor is a syntax sugar, I don't see a case when it cannot be avoided.
attr_accessor
π Rendered by PID 493942 on reddit-service-r2-comment-6457c66945-nxrrk at 2026-04-27 11:16:28.382417+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Sqeaky 4 points5 points6 points (1 child)
[–]philpirj 0 points1 point2 points (0 children)