Created
November 5, 2011 04:18
-
-
Save ezkl/1341104 to your computer and use it in GitHub Desktop.
My Bio... in Ruby
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 EzekielTemplin | |
def initialize | |
@birthdate = Date.parse('1983-06-29') | |
@birthplace = "Saegertown, PA" | |
@gender = "male" | |
end | |
def age | |
Date.today.year - @birthdate.year | |
end | |
def locations | |
[@birthplace, "Audubon, PA", "Guys Mills, PA", "Philadelphia, PA", current_location] | |
end | |
def current_location | |
"Meadville, PA" | |
end | |
def jobs | |
[ { :company => "Semantic Leap", | |
:url => "N/A", | |
:title => "Founder", | |
:start_date => Date.parse('2006-09-01') } ].push current_job | |
end | |
def current_job | |
{ :company => "IP Services, Inc", | |
:url => "http://www.ipservicesinc.com/", | |
:title => "Software Developer", | |
:start_date => Date.parse('2010-05-01') } | |
end | |
def bored? | |
"Bored enough to write a bio in Ruby!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment