Created
June 28, 2012 13:30
-
-
Save Linux-cpp-lisp/3011405 to your computer and use it in GitHub Desktop.
How to make Ruby class methods private
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
class << self | |
private | |
def private_class_method; end | |
protected | |
def protected_class_method; end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment