Skip to content

Instantly share code, notes, and snippets.

@JeffCohen
Created October 31, 2012 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JeffCohen/3986887 to your computer and use it in GitHub Desktop.
Save JeffCohen/3986887 to your computer and use it in GitHub Desktop.
Week 5 Ruby Challenge
class Person
attr_accessor :name
attr_accessor :hometown
def bio
# Add code here
end
end
person_object = Person.new
person_object.name = "Jeff"
person_object.hometown = "Chicago"
puts person_object.bio
# The above code should result in displaying:
#
# Jeff is from Chicago
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment