Using Decorator Design Pattern in Ruby
The intent of decorator design pattern, as described in Design Patterns by the Gang of Four
is to
attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.