+ 1
Maybe you can simply test it by modifying something in several ways.
+ 1
"Public Methods are those methods which can be called by anyone. As we know that access control works only on methods, so by default all the methods are public."
https://www.geeksforgeeks.org/ruby-access-control/