4 ms·
Isn't that just syntactic sugar[1]? I cannot see any kind of metaprogramming going on here - unless you can define attr_accessor and similar parts yourself. [1
by JeanPierre 14y ago
Isn't that just syntactic sugar[1]? I cannot see any kind of metaprogramming going on here - unless you can define attr_accessor and similar parts yourself.
[1] http://en.wikipedia.org/wiki/Syntactic_sugar http://en.wikipedia.org/wiki/Syntactic_sugar
- philwelch 14y agoYou can.
- stcredzero 14y agoIsn't that just syntactic sugar[1]? Actually, it's runtime-during-parsing magic, IIRC.