I come from more of a C# background yet am learning Ruby in my spare time.
Given classes, it is possible to make their methods private
, public
(default) or protected
. While I understand their usage, is it typical for Ruby code to make use of such modifiers, despite being a dynamic language, in which the user can easily override access?
While using something like Send
allows the user access to private methods regardless, I was just wondering what the best practice is regarding Ruby and access modifiers? In other words, should I be making use of them in my classes?