Today, you are going to be learning about Objects and Classes. In ruby, Classes are one of the tools we use to group together specific Methods that are meant to work together, or on the same type of Object. Arriving at Turing with a strong understanding of how to build a class, and how to call Methods on that class will make your first couple of weeks go smoothly!
When you are all done with the lessons, exercises, and questions for today, you will once again use git to save your work locally, and then send your work to Github.
Using your terminal, open your local copy of the forked repository you created during setup. Hopefully you are getting the hang of this, but revisit day_1 for more detail if needed.
-
Work through the following lessons. Any files that you create while working can be kept in today's
exercises
directory.-
What Are Objects section from LaunchSchool.
-
Classes Define Objects section from LaunchSchool.
-
Classes and Objects Part 1 from LaunchSchool.
-
Objects, Attributes and Methods from Ruby in 100 Minutes.
-
-
Work through the files in the day_6/exercises directory.
-
Answer the questions in the questions.md file in the day_6 directory.
When you are finished with all of the day_6 activities, enter the following commands in your terminal in order to save your work to your local git repository:
$ git add day_6/exercises
$ git add day_6/questions.md
- Use
git add day_6/<filename>
to add all additional files that you created today $ git status
- you should see only green filenames - if you see any that are red, continue togit add
those files untilgit status
shows all green files.$ git commit -m "Add Day 6 Work"
Remember- You've saved your work to git on your local machine, but it is not yet accessible through your remote Github repository. Push your code up to Github with the following command:
git push origin master
You should now be able to log in to GitHub, navigate to your remote prework repository and see all the work you did today!