The Factory Pattern in Ruby
I discovered the Factory Pattern earlier this year. I was eager to apply it in a real life problem and last month I finally had the chance to use it.
I was introduced to this pattern by a code kata called Gilded Rose. This kata faces the problem of…