Cómo agregar funcionalidad a las clases de Ruby con decoradores
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 …
Cómo agregar funcionalidad a las clases de Ruby con decoradores Leer más »