Come aggiungere funzionalità alle classi Ruby con i decoratori
Decorators allow us to add behavior to objects in runtime and don’t affect other objects of the class. Decorators can be applied when you need to dynamically add and remove responsibility to a class. The decorator pattern is a helpful alternative to creating sub-classes. They give additional functionality to a class while still keeping the …
Come aggiungere funzionalità alle classi Ruby con i decoratori Leggi altro »