I have a class with N methods. I want to set one of these methods to private. How can I do this?
class Example
def methodA
end
def methodP
end
private :methodP
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With