January 29 - Implementing the Null Object Pattern in Ruby
This coding exercise will test your ability to implement a basic version of the Null Object Pattern in Ruby.
Guide Tasks
- Read Tutorial
- Watch Guide Video
- Complete the Exercise
Video locked
This video is viewable to users with a Bottega Bootcamp license
Already a Bottega Student? Sign In
Summary
Implement a class that utilizes the Null Object pattern in Ruby.
Exercise Description
Build a class that can receive any method call and return the object instead of a no method error.
Real World Usage
This is a common pattern to follow in Rails development, specifically when working with guest users in an application.