Skip to content

Instantly share code, notes, and snippets.

@bricker
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save bricker/572749fab3f8c5af9e95 to your computer and use it in GitHub Desktop.

Select an option

Save bricker/572749fab3f8c5af9e95 to your computer and use it in GitHub Desktop.
class User
def initialize(firstName, lastName)
@firstName = firstName
@lastName = lastName
end
def firstName()
return @firstName
end
def lastName()
return @lastName
end
def fullName()
return "%s %s" % [@firstName, @lastName]
end
end
user = User.new("Bryan", "Ricker")
user.fullName() #=> "Bryan Ricker"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment