P
Pedro Silva
It wouldn't be nice if all these methods respect a unique arguments
form. attr_* methods receive a symbol without the @ prefix, but
*_variables_* methods receive @ prefixed symbols. Even class_variables
or instance_variables return an array of strings, wouldn't be better if
they return an array of symbols?
I prefer the attr* notation, but what really matters is to have a unique
invocation form. Does anyone think the same?
Pedro.
P.S - I've consulted http://www.ruby-doc.org/core-1.9/index.html for
Ruby 1.9 core reference.
form. attr_* methods receive a symbol without the @ prefix, but
*_variables_* methods receive @ prefixed symbols. Even class_variables
or instance_variables return an array of strings, wouldn't be better if
they return an array of symbols?
I prefer the attr* notation, but what really matters is to have a unique
invocation form. Does anyone think the same?
Pedro.
P.S - I've consulted http://www.ruby-doc.org/core-1.9/index.html for
Ruby 1.9 core reference.