Lets you construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same con

Design Patterns in Ruby

submited by
Style Pass
2024-09-20 18:00:16

Lets you construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same construction code.

Provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.

Lets you split a large class or a set of closely related classes into two separate hierarchies—abstraction and implementation—which can be developed independently of each other.

Lets you fit more objects into the available amount of RAM by sharing common parts of state between multiple objects instead of keeping all of the data in each object.

Lets you provide a substitute or placeholder for another object. A proxy controls access to the original object, allowing you to perform something either before or after the request gets through to the original object.

Lets you pass requests along a chain of handlers. Upon receiving a request, each handler decides either to process the request or to pass it to the next handler in the chain.

Leave a Comment