Created
February 13, 2011 19:58
-
-
Save jacegu/825044 to your computer and use it in GitHub Desktop.
More examples about access control in Ruby. This one wont work.
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 MoreAccessControlExamples | |
def public_by_default | |
end | |
protected def protected_method | |
end | |
public def this_is_public_too | |
end | |
private def private_method | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment