author avatar

akshay

Wed Jul 18 2018

Ruby has a class called SimpleDelegator which can be used to used to implement decorator pattern. It can be used to delegate all supported method calls to the object passed into the constructor.