Ruby Basics
Do you know how the private keyword affects a class method? Read about it here:Hiding a Class Method
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Do you know how the private keyword affects a class method? Read about it here:Hiding a Class Method
Comments
You can also use private_class_method.
Good tip. I have updated the article with your suggestion.
Post a comment