4 ms·
You can declare visibility in Ruby: https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Classes#Declaring_Visibility https://en.wikibooks.org/wiki/Ruby_Progra
by dwb 9y ago
You can declare visibility in Ruby: https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Classes#Declaring_Visibility https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Classe...
It can usually (always?) be gotten around though.
- simplify 9y agoRight. You can say something's "private", but there's always a way to access it. As far as I'm aware, this has never been an actual problem, and in fact has been useful since you can "patch" a library if you really need to.