Skip to content

Instantly share code, notes, and snippets.

@dblack
Created July 23, 2013 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dblack/6063295 to your computer and use it in GitHub Desktop.
Save dblack/6063295 to your computer and use it in GitHub Desktop.
class Person
attr_accessor :first_name, :last_name
def whole_name
first_name + " " + last_name
end
end
p = Person.new
p.first_name = "David"
p.last_name = "Black"
puts p.whole_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment