Ruby Essential Training Part 2: Classes and Modules
Offered By: LinkedIn Learning
Course Description
Overview
Learn how to define custom classes and modules in Ruby for more efficient, maintainable, and scalable code.
Syllabus
Introduction
- Learn to use custom classes in Ruby
- What you need to know
- Get the most out of the exercise files
- Define a class
- Instances
- Attributes
- Reader and writer methods
- Attribute methods
- Method access control
- Initialize method
- Challenge: Dice
- Solution: Dice
- Class methods
- Class attributes
- Class reader and writer methods
- Challenge: Radio
- Solution: Radio
- Class inheritance
- Override and extend
- Access the superclass
- Challenge: Secure radio
- Solution: Secure radio
- Time
- Date
- DateTime
- Challenge: Birthdate analysis
- Solution: Birthdate analysis
- Namespacing
- Mixins
- Load, require, and include
- Challenge: To-do list
- Solution: To-do list
- Handle exceptions
- Handle specific exceptions
- Exception methods
- Raise exceptions
- Custom exceptions
- Challenge: Custom exceptions
- Next steps
Taught by
Kevin Skoglund
Related Courses
Web Application ArchitecturesUniversity of New Mexico via Coursera Ruby مدخل إلى برمجة مواقع الإنترنت باستخدام لغة
Rwaq (رواق) Rails with Active Record and Action Pack
Johns Hopkins University via Coursera Ruby on Rails: An Introduction
Johns Hopkins University via Coursera Ruby on Rails Web Services and Integration with MongoDB
Johns Hopkins University via Coursera