Strategy pattern pattern pattern pattern

ruby / patterns

A pattern that I often see cropping up in my game framework.

It can be used for configuring subclasses that act according to an order of calls defined in the superclass. How the calls exactly work can be defined in the subclasses (or in an external configuration) using the class methods.

Next elements.each(*p)

Share


Previous

Comments?