Ruby :: Instance Variables and Accessors :: getter and setter methods
So far we talked about accessing the contents of an instance variable
through getter methods. Now, how do you change the value of the instance
variables from outside? That is where setter methods come into play.
Комментариев нет:
Отправить комментарий