Last active
December 20, 2015 13:39
-
-
Save movesmyers/6140574 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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