Decorator pattern
suggest changeRemarks
The Decorator pattern allows you to add or modify behavior of objects in a situational way without affecting the base object.
You can do this in plain Ruby with the standard library, or with a gem such as Draper.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents