Skip to content

Instantly share code, notes, and snippets.

@ezkl
Created November 5, 2011 04:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ezkl/1341104 to your computer and use it in GitHub Desktop.
Save ezkl/1341104 to your computer and use it in GitHub Desktop.
My Bio... in Ruby
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