# piscolomo/ruby-patterns

Examples of Patterns in Ruby

Repository: https://github.com/piscolomo/ruby-patterns
Canonical: https://ross.abutalabs.com/products/ruby-patterns
Language: Ruby
License Family: other
Last push: 2017-04-17T18:55:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4176, "days_push": 3425, "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 1001, forks 102 (observed 2026-09-03T02:15:16.906616+00:00)

## What it is
A collection of Ruby code examples demonstrating classic software design patterns such as Adapter, Builder, Command, Decorator, Factory, Observer, Singleton, and Strategy. It serves as a reference for learning how Gang of Four patterns are implemented idiomatically in Ruby.

## Use cases
- learn how to implement design patterns in Ruby
- see a working example of the adapter pattern
- understand the difference between builder and factory patterns
- find a Ruby example of the observer pattern
- study singleton and strategy pattern implementations
- reference for teaching design patterns

## When to choose
- you are learning or teaching classic design patterns with Ruby examples
- you want concise, runnable code snippets for each GoF pattern
- you need a quick reference while refactoring Ruby code toward known patterns

## When to avoid
- you need a production-ready pattern library or gem to depend on
- you work in a language other than Ruby
- you need actively maintained or officially licensed material (no license is provided)

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

## Member repositories
- piscolomo/ruby-patterns (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:16.906616+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-30T07:16:08.323391+00:00, confidence not recorded.
  - readme: https://github.com/piscolomo/ruby-patterns (fetched 2026-09-03T02:15:16.906616+00:00, sha abf1e04570f9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
