Private attribute accessors ( private getters and setters). Do we need them ? (Ruby version)
I tend to use a lot of attribute accessors to my ruby class’s. They basically add getter and setter methods to my class, for example suppose we have a Snake
class, with public method grow, shrink & reputation. Where grow would increase the length of snake by a unit,