# davidgf/design-patterns-in-ruby

GoF design patterns in Ruby

Repository: https://github.com/davidgf/design-patterns-in-ruby
Canonical: https://ross.abutalabs.com/products/davidgf-design-patterns-in-ruby
License Family: other
Topics: ruby, design-patterns
Last push: 2024-04-29T16:00:41+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3517, "days_push": 856, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2514, forks 395 (observed 2026-08-28T04:06:57.628909+00:00)

## What it is
A collection of Ruby code examples and explanations covering 14 GoF design patterns plus Ruby-specific patterns, based on Russ Olsen's book 'Design Patterns in Ruby'. It is an educational reference rather than a usable library.

## Use cases
- learn design patterns in ruby
- see adapter pattern example in ruby
- understand singleton and observer patterns with code
- study ruby metaprogramming and DSL patterns
- reference for GoF patterns adapted to ruby

## When to choose
- you are learning or teaching design patterns in Ruby
- you want concise, self-explanatory example code per pattern

## When to avoid
- you need a production-ready pattern library or gem to import
- you need idiomatic, performance-optimized implementations

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools, documentation
- domain: tutorials, programming-languages, education
- platform: ruby
- tags: design-patterns, gof-patterns, ruby, educational, software-architecture

## Member repositories
- davidgf/design-patterns-in-ruby (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:57.628909+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:26:13.409285+00:00, confidence not recorded.
  - readme: https://github.com/davidgf/design-patterns-in-ruby (fetched 2026-08-28T04:06:57.628909+00:00, sha 2c6e77812c97)
- Data as of 2026-08-30T08:39:29.467469+00:00.
