Looking for ruby-on-rails Answers? Try Ask4KnowledgeBase
Looking for ruby-on-rails Keywords? Try Ask4Keywords

Ruby on RailsDecorator pattern


The Decorator pattern allows you to add or modify behavior of objects in a situational way without affecting the base object.

This can be achieved though plain Ruby using the stdlib, or via popular gems such as Draper.