How to set only one private method in Ruby?

I have a class with N methods. I want one of these methods to be closed. How can i do this?

+4
source share
1 answer
class Example def methodA end def methodP end private :methodP end 
+14
source

All Articles