Ruby Essential Training Part 2: Classes and Modules [Updated: 3/31/2022]
.MP4, AVC, 1280x800, 30 fps | English, AAC, 2 Ch | 3h 1m | 380 MB
Instructor: Kevin Skoglund
.MP4, AVC, 1280x800, 30 fps | English, AAC, 2 Ch | 3h 1m | 380 MB
Instructor: Kevin Skoglund
Once you understand the basics of Ruby, you can start creating custom classes and modules. These programming constructs make it easier to organize and maintain code and extend your applications with new features. In Ruby Essential Training 2, instructor Kevin Skoglund teaches the fundamentals of object-oriented programming with classes and modules. Learn how to define classes, the templates for creating object instances with their own unique behaviors and attributes.
Discover how to use inheritance to share attributes and methods between a superclass and subclasses—and to extend or override them when necessary. Find out how to use modules as namespaces to prevent conflicts with other code, or as mixins to share functionality between classes. Kevin gives you step-by-step demonstrations, complete with examples and challenges that allow you to practice your new Ruby skills along the way.
Learning objectives
- 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