Design patterns in ruby

Stefano Mancini has started several posts about design patterns in ruby. You can find the introduction to this series here. Stefano will publish the source code of his examples on github.

The first part of the series is about factories.  Stefano introduces factories as followed:

„An abstract Factory provides a common interface for creating families of related objects together.
The client object does not bother to build objects directly, but it calls the methods provided by this common interface.“

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *