Created
July 20, 2012 16:11
-
-
Save americos/3151607 to your computer and use it in GitHub Desktop.
Documentation for Person.rb using Docco
This file contains 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
# This is the documentation for Person | |
#### Person Class | |
class Person | |
# Age variable of Class Person | |
age = "21" | |
# Sample method to say Hello | |
def self.say_hello | |
puts("Hello there!") | |
end | |
# Method to return age | |
def self.get_age | |
age | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment