avdi/naught
A toolkit for building Null Object classes in Ruby observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 92
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4847
- days_rel: n/a
- days_push: 51
- n_releases_24m: 0
Adoption not part of the score
1057 stars · 48 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Naught is a Ruby toolkit for building Null Object classes, supporting variations like nil-returning objects and infinitely chainable 'black hole' objects. It automates the boilerplate of implementing the Null Object design pattern.
Use cases
- generate null object classes in ruby
- replace nil checks with null object pattern
- create a null logger that ignores all calls
- build a black hole object with infinite method chaining
- avoid noMethodError on optional dependencies
When to choose
- you frequently pass optional collaborators and want to eliminate nil checks
- you want configurable null object variants without hand-writing no-op classes
When to avoid
- your null object needs are trivial and a hand-written class suffices
- you are not working in Ruby
Facets
library · maturity stable
developer-tools developer-tools programming-languages ruby null-object-pattern ruby-gem design-patterns oop
1 source
- readme: https://github.com/avdi/naught · fetched 2026-08-28 · 33cb50aaaa77
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| avdi/naught | main | 74 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem