crystal-patterns icon indicating copy to clipboard operation
crystal-patterns copied to clipboard

:book: Examples of GOF patterns written in Crystal

Crystal Patterns

Build Status

Design patterns implemented in Crystal language (with MK in mind).

The goal is to have a set of GOF patterns for Crystal users.

Available implementations

  • Behavioral
    • Command
    • Iterator
    • Memento
    • Observer
    • State
    • Strategy
    • Template
    • Visitor
    • Mediator
    • Chain of Responsibility
    • Interpreter
  • Creational
    • Abstract Factory
    • Builder
    • Factory Method
    • Prototype
    • Singleton
  • Structural
    • Adapter
    • Bridge
    • Composite
    • Decorator
    • Facade
    • Flyweight
    • Proxy

If you found any inconsistency or a place for improvement, pull requests are welcomed.

Want more?

Contributors