# design-patterns-in-ruby/design-patterns-in-ruby

Examples from the book Design Patterns in Ruby by Russ Olsen.  # ruby 2.2.0

Repository: https://github.com/design-patterns-in-ruby/design-patterns-in-ruby
Canonical: https://ross.abutalabs.com/products/design-patterns-in-ruby
Language: Ruby
License: CC0-1.0
License Family: permissive
Last push: 2026-05-13T14:28:15+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 35, longevity 100
- inputs: {"age_days": 5079, "days_push": 112, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2557, forks 504 (observed 2026-08-28T04:07:00.818078+00:00)

## What it is
A collection of Ruby code examples illustrating 14 classic GoF design patterns from Russ Olsen's book 'Design Patterns in Ruby'. It serves as a reference for learning how patterns like Strategy, Observer, and Singleton are implemented idiomatically in Ruby.

## Use cases
- learn design patterns in ruby
- see example implementations of gof patterns
- study strategy pattern ruby code
- reference for singleton or observer in ruby
- prepare for software design interviews
- teach object-oriented design with ruby

## When to choose
- you are learning or teaching design patterns using Ruby
- you want concise, idiomatic example code for classic GoF patterns
- you are reading Russ Olsen's book and want runnable examples

## When to avoid
- you need a production-ready pattern library or gem to import
- you need patterns beyond the 14 covered here
- you work in a language other than Ruby

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

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:00.818078+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:23:38.877657+00:00, confidence not recorded.
  - readme: https://github.com/design-patterns-in-ruby/design-patterns-in-ruby (fetched 2026-08-28T04:07:00.818078+00:00, sha 8918a42cd900)
- Data as of 2026-08-30T08:39:29.467469+00:00.
