Skip to content

Instantly share code, notes, and snippets.

@Linux-cpp-lisp
Created June 28, 2012 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Linux-cpp-lisp/3011405 to your computer and use it in GitHub Desktop.
Save Linux-cpp-lisp/3011405 to your computer and use it in GitHub Desktop.
How to make Ruby class methods private
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