Skip to content

Instantly share code, notes, and snippets.

@movesmyers
Last active December 20, 2015 13:39
Show Gist options
  • Select an option

  • Save movesmyers/6140574 to your computer and use it in GitHub Desktop.

Select an option

Save movesmyers/6140574 to your computer and use it in GitHub Desktop.
# The 'Person' class represents the basic attributes of a person in the application.
class Person
# Define a setter and getter for the "name" attribute
attr_accessor :name
# Pass a name to the 'new' method to initialize a person with their name.
def initialize(name)
@name = name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment