Posts by Wagner Abrantes • 1 point
1 post
-
0
votes3
answers132
viewsA: Read private method - Ruby
You can call a private method within a subclass because you put it within a public method. The same logic applies to attr_accessor which is nothing more than a macro for two writing and reading…
rubyanswered Wagner Abrantes 1