Created
January 7, 2009 18:11
-
-
Save skalnik/44354 to your computer and use it in GitHub Desktop.
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 Example | |
def public | |
puts "Public Method" | |
end | |
private | |
def private | |
puts "Private methods go below the private tag" | |
end | |
protected | |
def protected | |
puts "Protected methods go under the protected tag" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment