Okategoriserad

Hur man lägger till funktionalitet till rubinklasser med dekoratörer

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 …

Hur man lägger till funktionalitet till rubinklasser med dekoratörer Läs mer »

sv_SESwedish