Join Kevin Skoglund for an in-depth discussion in this video Get the most out of the exercise files, part of Ruby Essential Training: 2 Classes and Modules.
- [Kevin] This course includes exercise files. In order to make use of these exercise files, you'll want to first make sure that you have Ruby installed and working. The exercise files for this title are arranged by chapter and by movie, and you could find the exercise file that correspond to the movie that you're watching by first looking for the chapter number and then the movie number. You should copy the exercise files into your user directory or another convenient location. For me, I'm going to put it inside my user directory, and then inside the documents directory. It's always a good idea to make a copy so that you still have the original to refer back to if you make changes.
I'm going to option drag that file in there in order to make a copy. The software that you'll need for this tutorial is Ruby, any text editor, and the command-line tool. I'll be using the Atom text editor, and the Mac's built-in terminal program, which can be found in the application utilities directory. Once you have the files in place, you'll be able to follow along with me. Everything that's in the exercise files we will create together during the tutorials, so you can just work along with me and your files will mirror what's in the exercise files.
Remember, you can pause the video or rewind if you need more time to copy something down. You can also use the exercise files to check your work, or to get back in sync if you decide to experiment on your own.
- Defining a custom class
- Working with instances of a class
- Class and instance attributes and methods
- Class inheritance
- Working with dates and times
- Using modules as namespaces and mixins
- Raising and handling exceptions
Skill Level Beginner
2. Class Attributes and Methods
4. Dates and Times
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.