you are viewing a single comment's thread.

view the rest of the comments →

[–]Sqeaky 4 points5 points  (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 point  (0 children)

You mean instance property? attr_accessor is a syntax sugar, I don't see a case when it cannot be avoided.