- 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
- [Kevin] You will get the most out of Ruby by embracing object-oriented programming and defining your own custom classes. Classes and modules help organize code to make it easier to maintain and to extend with new features. Classes provide templates for creating objects or instances of a class that have unique attributes and behaviors. These dynamic objects can interact with each other in complex ways. In this course, you'll learn the fundamentals of defining classes and working with instances. You will discover how class inheritance and modules allow you to share behaviors to write efficient code.
You will learn how to use Ruby's object-oriented programming features step-by-step with examples and code challenges along the way. I'm Kevin Skoglund and I've been defining custom classes in Ruby for over 13 years, I still love it and can't imagine programming without it. Let's learn the essentials of Ruby classes and modules.
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.